+ Reply to Thread
Results 1 to 5 of 5

Copy "Template" worksheet, Paste, and Rename -then add more ws's as customer list changes.

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Copy "Template" worksheet, Paste, and Rename -then add more ws's as customer list changes.

    I am working with a Workbook that contains a Template worksheet and a CustomerMaster worksheet. I use the script below to make a copy of the Template, and rename the copied template based on Column A of the CustomerMaster worksheet. The Customer Information changes from time to time on CustomerMaster (Customers are added to the list but never removed). My challenge is this. I need to create worksheets for each newly added customer, without modifying the already copied and renamed worksheets produced by running the VBA previously. So I would like to modify my VBA script to only create a template worksheet for newly added Customers only in Column A of CustomerMaster.

    Please Login or Register  to view this content.
    Please help!

    Thanks,

    Adam
    Last edited by arlu1201; 05-01-2012 at 02:17 PM. Reason: Please put code tags in future.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy "Template" worksheet, Paste, and Rename -then add more ws's as customer list chan

    Try this
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-01-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copy "Template" worksheet, Paste, and Rename -then add more ws's as customer list chan

    I've plugged your solution in and I get the following error message after it creates one new sheet.

    "Run-time Error: 13"

    Type Mismatch

    Thanks for your quick response!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy "Template" worksheet, Paste, and Rename -then add more ws's as customer list chan

    Oops, i think i got it. Try this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-01-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Copy "Template" worksheet, Paste, and Rename -then add more ws's as customer list chan

    That worked perfectly!

    Thank you again for the quick response!

    Adam

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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