+ Reply to Thread
Results 1 to 2 of 2

Macro to add new sheet and then fill formula in a totals sheet to refernce this sheet

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Macro to add new sheet and then fill formula in a totals sheet to refernce this sheet

    Hi all,

    I have created a macro to copy the template sheet and name the sheet based on the last sheet, so sheet names are 1,2,3 etc
    Please Login or Register  to view this content.
    This works fine but i also want to add to the macro to copy this formula =IF('1'!A$3="","",'1'!A$3) to the next row but to reference the new worksheet so it would be =IF('2'!A$3="","",'2'!A$3). Does anyone know how I can do this?

    Thanks,
    Last edited by arlu1201; 07-19-2012 at 06:26 AM. Reason: 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: Macro to add new sheet and then fill formula in a totals sheet to refernce this sheet

    Do you have a sample file that you can upload?
    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]

+ 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