+ Reply to Thread
Results 1 to 2 of 2

Excel 2010 Macro to copy worksheet, update formula and rename worksheet

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    1

    Excel 2010 Macro to copy worksheet, update formula and rename worksheet

    For some reason I am having a really hard time getting what I believe to be a very simple macro to run.

    There is one workbook with two worksheets. First worksheet is for data entry and called “Input Data Here”. The second worksheet is a form – it takes all the data from the input page and makes it look pretty. That worksheet is called “PAR”.

    The macro should do 3 things

    1. Duplicate “PAR” until the last empty row on the “Input Data Here” tab. I thought I had this working with the below code, but now I'm getting a 424 error - Object Required

    Please Login or Register  to view this content.
    2. Change a formula in cell X8 on “PAR” to advance to the next row on “INPUT DATA HERE”. The formula in the first worksheet is ='INPUT DATA HERE'!A2 – with each new copied worksheet I want it to advance one row.

    3. Rename the worksheet to a cell reference. I think I have that working with this code, but don’t know for sure because I can’t get steps one and two to work correctly so I keep getting the error that says I can’t have duplicate sheet names.

    Please Login or Register  to view this content.
    Any help is much appreciated.
    Suzi
    Last edited by Cutter; 08-29-2012 at 09:17 PM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Excel 2010 Macro to copy worksheet, update formula and rename worksheet

    @ madmak0203

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

+ 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