LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default userform and error excel has stopped working



hi Cindy,

You need to put a break point at the SUB line in the userform and then
step through the code. You probably have to put a break point at the
start of each of the SUB's in the userform to find the problem.


To expand on Joel's suggestion, a break point can be inserted by
clicking a line of code near the start of each sub & pressing [F9] (note
that they can't be on declarations). From memory, break points only
exist for the life of the file being open, so in your case, it is likely
to be better if you type the word Stop on a line by itself near the
start of each sub. The "stop" phrase has the same action (as a break
point) but it will still be there when you re-open the file & will cause
the code to be interrupted when it is reached. The stop phrase will
highlight & you can then use [F8] to manually continue the code line by
line or [F5] to automatically continue. You can then narrow down which
macros work & where the error occurs by noting down each macro as it
runs. To see the hierarchy of called macros at any time when the code is
interrupted you can press [ctrl + L] to bring up the Call Stack.
Note: when you fix the problem you should comment out (or delete) all
the "stop" lines within your add-in.

I'm sorry no other solutions spring to mind, but I've realised that I
may be able to help if you were to become a CodeCage member (it's free &
you can list me "broro183" as your referrer :) via 'The Code Cage - Help
Forums For Microsoft Office Tips & Tricks'
(http://www.thecodecage.com/register.html)). Then you can upload a
zipped copy of the file in Excel 2007's compatibility mode of xls format
for Excel '97 to 2003 into this thread (http://tinyurl.com/nhtmq5).

hth
Rob


--
broro183

Rob Brockett. Always learning & the best way to learn is to
experience...
------------------------------------------------------------------------
broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=109219

 
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
Excel stopped working Doris R. Excel Discussion (Misc queries) 3 February 18th 10 04:19 AM
excel stopped working Dunk1957 Excel Discussion (Misc queries) 1 June 26th 09 08:09 PM
Help in Excel stopped working GaryDolman Excel Discussion (Misc queries) 0 January 4th 08 08:03 PM
Help - Macro has stopped working - Compile Error mr tom Excel Programming 2 October 29th 07 03:03 PM
excel stopped working Steve Excel Discussion (Misc queries) 0 January 13th 05 04:07 AM


All times are GMT +1. The time now is 02:03 PM.

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

About Us

"It's about Microsoft Excel"