+ Reply to Thread
Results 1 to 3 of 3

Object names change when copying Sheets

  1. #1
    Registered User
    Join Date
    07-13-2016
    Location
    Gold Coast ,Australia
    MS-Off Ver
    2016
    Posts
    2

    Object names change when copying Sheets

    When I duplicate a sheet the object names change and I receive an error. For example I have 8 Straight connectors numbered from 1 to 8. The copied sheet changes them all to a new number say 9 through 18. I can go through the code and change them all manually although it is very time consuming.

    The error reads:

    Microsoft Visual Basic
    Run-time error '-2147024809 (80070057)':
    The item with the specified name wasn't found.

    Is there a way to have the connectors keep their original names or have the code automatically update to the new connector names?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Object names change when copying Sheets

    What code is giving you the error(s)?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-13-2016
    Location
    Gold Coast ,Australia
    MS-Off Ver
    2016
    Posts
    2

    Re: Object names change when copying Sheets

    This is the code im using. Its similar on most sheets , Just varies depending on application

    Thanks for looking

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 17
    Last Post: 02-01-2013, 12:20 PM
  2. Replies: 7
    Last Post: 11-25-2012, 01:24 AM
  3. Replies: 1
    Last Post: 09-03-2012, 10:52 PM
  4. [SOLVED] Macro copying values and sheet names of all activated sheets
    By Rosixks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2011, 06:16 PM
  5. Copying sheets but copies need unique names
    By bm1 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-22-2010, 11:56 AM
  6. Copying Sheets with Variable Names
    By LaraBee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2007, 06:15 PM
  7. [SOLVED] Copying sheets from ListBox of names to a new worksheet
    By BlackSox in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2005, 09:05 PM

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