Results 1 to 12 of 12

VBA to replace new name of worksheets in formulas in newly copied worksheets

Threaded View

  1. #1
    Registered User
    Join Date
    12-16-2013
    Location
    Reading, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    VBA to replace new name of worksheets in formulas in newly copied worksheets

    On the attached worksheet on "Home Page" I enter the client name on cell B4 and click the command button below it. This copies worksheets "Yearly Lease Order", "Yearly Quote Form" and "Yearly Invoice Form" and adds the contents of worksheet "Home Page" cell B4 to the copied worksheets names. ie if "Test" is in B4 then the new worksheets are called "Test Yearly Lease Order", "Test Yearly Quote Form" and "Test Yearly Invoice Form". The problem is the formulas in the new worksheets "Test Yearly Quote Form" and "Test Yearly Invoice Form" are still referencing "Yearly Lease Order". I need them to look at the newly created "Test Yearly Lease Order". Somehow I need to run a replace on "Test Yearly Quote Form" and "Test Yearly Invoice Form" to replace "Yearly Lease Order" with the contents of "Home Page" cell B4 & "Yearly Lease Order" I would like this happen with the same initial click of the command button.
    Any Ideas anyone?????
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Worksheets from source to replace worksheets in the destination workbook when closed
    By anushatamby in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2013, 03:52 PM
  2. Replies: 9
    Last Post: 12-19-2012, 01:32 PM
  3. Dynamic array in VBA of newly added worksheets
    By greglittle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2012, 06:00 PM
  4. [SOLVED] Copied worksheets not protected
    By Shahid_Excel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2012, 11:02 AM
  5. Linking Newly Created Worksheets
    By bpowers in forum Excel General
    Replies: 0
    Last Post: 02-15-2009, 11:25 AM

Tags for this Thread

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