Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Get in DEBUG mode on workbook open

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open in form mode Ruth Excel Discussion (Misc queries) 4 October 30th 08 12:45 PM
Locking debug mode in a macro Megadrone Excel Worksheet Functions 1 November 30th 06 10:32 PM
how open dbf in shared mode? Sandra Excel Programming 0 November 16th 04 09:40 AM
Debug Step vs Run Mode Arthur[_3_] Excel Programming 3 November 9th 03 05:03 PM
Mysterious debug mode Shunt Excel Programming 0 August 7th 03 02:35 PM


All times are GMT +1. The time now is 02:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"