+ Reply to Thread
Results 1 to 5 of 5

copy entiresheet fro 1 workbook to an existing work book error: invalid or unqualified ref

  1. #1
    Registered User
    Join Date
    10-27-2015
    Location
    Georgia
    MS-Off Ver
    2008
    Posts
    11

    Question copy entiresheet fro 1 workbook to an existing work book error: invalid or unqualified ref

    My code is :

    Please Login or Register  to view this content.
    I am having trouble with the copy command. I am trying to copy sheet1 from for_macro_copy_test.xlsx to after sheet 1 in/of macro_enabled_all_valve_ex.xlsm. Currently I am getting the error message: invalid or unqualified reference and the .Workbook of .Workbook("macro_enabled_all_valve_ex.xlsm").Worksheet("Sheet1") is highlighted. What I have now seems like the correct syntax. Can you pleas tell me what the problem is and how to fix it?

    also, is it going to be problematic for both the copy sheet and the sheet the copy is inserted after have the same name?

    Lconner

  2. #2
    Registered User
    Join Date
    10-10-2015
    Location
    Hoboken, Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    93

    Re: copy entiresheet fro 1 workbook to an existing work book error: invalid or unqualified

    Hi,

    There is a dot that need to be removed.
    You can try this:


    Please Login or Register  to view this content.
    Greetings,

    Cheetahke

  3. #3
    Registered User
    Join Date
    10-27-2015
    Location
    Georgia
    MS-Off Ver
    2008
    Posts
    11

    Re: copy entiresheet fro 1 workbook to an existing work book error: invalid or unqualified

    when I try your code i got compilation error sud of function not defined and the workbook of Workbook("macro_enabled_all_valve_ex.xlsm").Worksheet("Sheet1") was highlighted. Any other ideas?

  4. #4
    Registered User
    Join Date
    10-10-2015
    Location
    Hoboken, Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    93

    Re: copy entiresheet fro 1 workbook to an existing work book error: invalid or unqualified

    Maybe this?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-27-2015
    Location
    Georgia
    MS-Off Ver
    2008
    Posts
    11

    Re: copy entiresheet fro 1 workbook to an existing work book error: invalid or unqualified

    thank you so much that worked!

+ 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. [SOLVED] Getting error invalid or unqualified reference
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-20-2014, 08:15 PM
  2. [SOLVED] Getting error invalid or unqualified reference
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2014, 02:17 AM
  3. [SOLVED] Getting error invalid or unqualified reference
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2014, 11:31 PM
  4. [SOLVED] Invalid or Unqualified Reference Error
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2013, 11:44 AM
  5. [SOLVED] VBA Debug (compile error invalid or unqualified reference)
    By Kezwick in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2012, 04:38 AM
  6. Invalid or unqualified reference error using the .Find in vba
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-08-2011, 07:10 PM
  7. Invalid, Unqualified Referance error
    By Bope in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2008, 04:13 PM

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