ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get in DEBUG mode on workbook open (https://www.excelbanter.com/excel-programming/335773-get-debug-mode-workbook-open.html)

Anthony Fok[_2_]

Get in DEBUG mode on workbook open
 

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

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

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

--
Anthony Fo
-----------------------------------------------------------------------
Anthony Fok's Profile: http://www.excelforum.com/member.php...fo&userid=1683
View this thread: http://www.excelforum.com/showthread.php?threadid=39092


TommySzalapski[_24_]

Get in DEBUG mode on workbook open
 

The easiest way I can think of is to rename your workbook_open macro (s
that it won't run on open) open it and the debugger and run the macr
manually (using f8 or the little play button) There may be a les
clumsy solution, but this will work

--
TommySzalapsk
-----------------------------------------------------------------------
TommySzalapski's Profile: http://www.excelforum.com/member.php...fo&userid=2556
View this thread: http://www.excelforum.com/showthread.php?threadid=39092


seisman

Get in DEBUG mode on workbook open
 
Try puttinga STOP command at the beginning of the Workbook Open method.
Seisman


reddog9069[_17_]

Get in DEBUG mode on workbook open
 

as long as you do not have a password on the macros then just open i
and put a breakpoint on the first line of the workbook open method the
when the workbook opens it should take you into debug mode

--
reddog906
-----------------------------------------------------------------------
reddog9069's Profile: http://www.excelforum.com/member.php...fo&userid=2445
View this thread: http://www.excelforum.com/showthread.php?threadid=39092


TommySzalapski[_25_]

Get in DEBUG mode on workbook open
 

You lose breakpoints when you close the file

--
TommySzalapsk
-----------------------------------------------------------------------
TommySzalapski's Profile: http://www.excelforum.com/member.php...fo&userid=2556
View this thread: http://www.excelforum.com/showthread.php?threadid=39092


Anthony Fok[_3_]

Get in DEBUG mode on workbook open
 

thanks for the tips, i'll give it a shot


--
Anthony Fok
------------------------------------------------------------------------
Anthony Fok's Profile: http://www.excelforum.com/member.php...o&userid=16832
View this thread: http://www.excelforum.com/showthread...hreadid=390927



All times are GMT +1. The time now is 08:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com