+ Reply to Thread
Results 1 to 6 of 6

Get in DEBUG mode on workbook open

  1. #1
    Registered User
    Join Date
    11-24-2004
    Posts
    7

    Get in DEBUG mode on workbook open

    is there a way to get into the debugger just as i open excel (and enable macros)

    i am currently trying to debug a file but the error occurs in the Workbook Open method.

    i cant figure out a way to get into the debugger before the error happens, is this even possible? thanks.

  2. #2
    Registered User
    Join Date
    07-25-2005
    Posts
    62
    The easiest way I can think of is to rename your workbook_open macro (so that it won't run on open) open it and the debugger and run the macro manually (using f8 or the little play button) There may be a less clumsy solution, but this will work.

  3. #3
    Registered User
    Join Date
    06-20-2005
    Posts
    30
    as long as you do not have a password on the macros then just open it and put a breakpoint on the first line of the workbook open method then when the workbook opens it should take you into debug mode.

  4. #4
    seisman
    Guest

    Re: Get in DEBUG mode on workbook open

    Try puttinga STOP command at the beginning of the Workbook Open method.
    Seisman


  5. #5
    Registered User
    Join Date
    07-25-2005
    Posts
    62
    You lose breakpoints when you close the file.

  6. #6
    Registered User
    Join Date
    11-24-2004
    Posts
    7
    thanks for the tips, i'll give it a shot

+ 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