+ Reply to Thread
Results 1 to 7 of 7

Copying a worksheet with controls

  1. #1
    Registered User
    Join Date
    12-08-2009
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    19

    Copying a worksheet with controls

    I have a worksheet named "2009" that has multiple controls (option buttons, check boxes, etc). The cell links for these controls reference a worksheet named "2009 Totals".

    I'd like to create new worksheets named "2010" and "2010 Totals" by copying and pasting the 2009 worksheets. The problem is when I do this, the cell links on the "2010" worksheet still reference the "2009 Totals" worksheet. Is there a way to make a mass update to the cell links or do I have to change each one individually?

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Copying a worksheet with controls

    Can you not use Find/Replace?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-08-2009
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Copying a worksheet with controls

    Find/Replace only looks in cells. The cell links are "behind the scenes". You have to right click on a control and select Format Control to access the cell links.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Copying a worksheet with controls

    The code will be needed to update the LinkedCell property.

  5. #5
    Registered User
    Join Date
    12-08-2009
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Copying a worksheet with controls

    Andy -

    I don't understand your last post. There are no macros and no VB code linked to the controls, if that is what you are referring to.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Copying a worksheet with controls

    When you say you have controls, it is assumed you are using option buttons, check boxes, etc from the controls toolbar, which uses VBA code.
    Your last response indicates there is no code, so would it be correct to say that you are using option buttons, check boxes, etc, from the forms tool bar which is formula driven?

    Is it possible to rename the workbook as your 2010 workbook, then rename the sheets?

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Copying a worksheet with controls

    If the links are in cells then FIND/REPLACE.

    If you have controls that have properties that are linked to cells then you will need code to do a FIND/REPLACE on the properties.

    If the links are in VBA code then FIND/REPLACE in VBE.

    When not post example file and save those trying to help the task of second guessing?

+ 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