+ Reply to Thread
Results 1 to 3 of 3

Dynamically create sheets with similar names and copy cells on row based on matched cus#

  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Dynamically create sheets with similar names and copy cells on row based on matched cus#

    Hello all. At the title indicates, I need help with 2 parts of my project. The first is that I have some customers that have similar names and the current code cannot validate and create additional sheets after the first one has been created. For example: Richard_John_Worthington and Richard_John_Worthington1. The code will create the first one correctly and populate it with the correct data but when the second one is processed in the code, it throws a Type Mismatch while checking to see if the name already exists.


    My second problem is I need to match the customer number on ZZ_Maintenance to the one currently being processed on 1_ImportedData, then cells in column D to F on ZZ_Maintenance for the matched customer number need to be pasted on the new customer sheet in D3. The examples I have seen copy the entire row but I could not find any that would do a range of cells in the row. I am using conditional formatting in customer rows D2 to F2 to compare to the values in D2 to F3 but each customer may have their own values for the items so I can't do this manually for each new customer. I think I did the conditional formatting correctly to check the values for the entire row, but if somebody could verify that would be great!

    Thanks,
    Andrew
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: Dynamically create sheets with similar names and copy cells on row based on matched cu

    A lot of trial and error produced

    Please Login or Register  to view this content.
    that looks like it will work to copy the cells from the matched customer number.

  3. #3
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: Dynamically create sheets with similar names and copy cells on row based on matched cu

    I am getting a "excel vba run time error 13 type mismatch" at the first line of the below code block after it had run completely through one time. It looks like I need to check for an empty value or something and if found, end the "If" but I have not figured it out yet. Anyone know how to do this in this instance?

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Clear dynamic named sheet, compare cells from 2 sheets, copy all matched rows to dynamic s
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-15-2015, 12:31 PM
  2. [SOLVED] Create Sheets and copy rows to the Sheets if cell contains sheet names
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2015, 08:06 AM
  3. Dynamically Show the Summary Sheet Cells Based on Other Sheets
    By Kandavalli.Kiran in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-07-2015, 03:01 AM
  4. Replies: 3
    Last Post: 10-01-2014, 01:49 PM
  5. [SOLVED] Copy adjacent cells based on matched cell criteria
    By asdfwqefwe3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2013, 02:26 AM
  6. Replies: 1
    Last Post: 08-25-2005, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1