+ Reply to Thread
Results 1 to 2 of 2

auto open macro not executing

Hybrid View

  1. #1
    Registered User
    Join Date
    07-13-2011
    Location
    chicago, illinois
    MS-Off Ver
    Excel 2003
    Posts
    3

    auto open macro not executing

    I have 4 workbooks - A, B, C and D that each run the same macro when opened. I got tired of opening each individually so, in workbook A I made a macro that opens B, C and D. When I execute the macro in A, it opens workbooks B, C and D and the macro does its job in B and C but does not work in D. If I close D and reopen it without using the macro in A, the auto open macro does its job just fine. I have looked at the macro coding and it looks the same for B, C and D.

  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
    48,280

    Re: auto open macro not executing

    Might be useful to post the code and, ideally, sample workbooks ... especially workbook D if that doesn't work.

    Could it be that, somewhere along the line, you switch off event handling? Maybe because an error doesn't switch it back on?

    Regards, TMS
    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


+ 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. A macro to auto open and auto close a file with time schedule
    By billj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2015, 06:01 AM
  2. [SOLVED] executing macro causes excel to open the workbook that the macro is associated with
    By YOO629 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2015, 11:18 PM
  3. Auto hide sheet with macro while executing function
    By jgema in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2013, 02:15 AM
  4. Auto Open and Auto Close Macro
    By SaleenaKhan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2013, 03:17 PM
  5. [SOLVED] Macro stops executing if another workbook is open
    By 4evra in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2013, 12:32 PM
  6. Can't edit macro with auto open and auto close.
    By lpete in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-03-2012, 07:25 PM
  7. open up an excel program with an auto open macro
    By john.9.williams@bt.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2005, 12: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