+ Reply to Thread
Results 1 to 7 of 7

Reference Sheet In Other Workbook - Copy To

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Reference Sheet In Other Workbook - Copy To

    .
    Yesterday the following macro worked fine (literally). I haven't done anything to the code or the workbook since.

    No runs, no drips, no errors.


    Today, workbook #1 that is doing the pasting to the other workbook, won't run the macro. It stops execution on this line :

    Please Login or Register  to view this content.
    No error code ... just a message that says 'Execution stopped.'

    So I did more research and simply tried changing the variables ... no luck. (see different variables listed below)

    I deleted the sheet in WB#1, saved the workbook, re-opened and re-created the worksheet with the macro pasted fresh.
    Same error message.


    The sheet names are accurate. The workbook names are accurate. Soooooooo .... why won't it run today ?

    I swear Excel is of the female gender. I know ... I know ... that was politically incorrect but I'm angry and venting !


    ORIGINAL REFERENCE:

    Please Login or Register  to view this content.

    SECOND REFERENCE:

    Please Login or Register  to view this content.

    COMPLETE MACRO:

    Please Login or Register  to view this content.

    Worksheet("Database") is hidden in the other workbook. This wasn't an issue previously. ????

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Reference Sheet In Other Workbook - Copy To

    I suspect it's because of this line:
    Please Login or Register  to view this content.
    You can't Activate a Hidden worksheet.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,081

    Re: Reference Sheet In Other Workbook - Copy To

    What happens if you remove this line
    Please Login or Register  to view this content.
    Also, does the workbook actually open?

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Reference Sheet In Other Workbook - Copy To

    .
    The workbook does open.

    I've disabled the ON ERROR statement and the Worksheets("Database").Activate

    I'm still receiving the Code Execution Has Been Interrupted. No error message.

    Workbook attached ....
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,081

    Re: Reference Sheet In Other Workbook - Copy To

    It works for me, so not sure what to advise.

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Reference Sheet In Other Workbook - Copy To

    .
    Grrrrrrrrrr .....

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Reference Sheet In Other Workbook - Copy To

    .
    Ok ... I relented and uninstalled Office 2007 then re-installed it.

    Everything works fine ... again.


    The issue is that give things a week or so and it will occur again, without notice. That is frustrating.
    I shouldn't have to re-install software to get it to work correctly.


    I read a few nights ago where someone was having issues with the Iobit software (System Care, Uninstall, Anti-Virus, etc). That software was causing issues with
    his system so he uninstalled it. No more issues.

    Has anyone else had issues with Iobit ?

    I have uninstalled it here as a test.

+ 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. How to make macro button reference new workbook after copy/paste-ing parent sheet
    By uahmed318 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2019, 05:26 PM
  2. Replies: 3
    Last Post: 12-07-2017, 05:14 PM
  3. Copy/Paste cell range from sheet 1 to sheet 2 in numbers match in reference columns.
    By trickedout in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-23-2016, 07:44 PM
  4. [SOLVED] Copy sheet from another workbook based on ComboBox names of the Workbook and sheet
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2016, 10:07 AM
  5. [SOLVED] Locked formula changes reference when rows added to reference sheet in same workbook
    By macrorookie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2014, 04:08 PM
  6. [SOLVED] Copy Values From Each Workbook in Folder to a Single Sheet in New Workbook +Workbook names
    By Arsham24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:42 PM
  7. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 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