Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Instead of debugging, code just stops running

I have a macro that gets to a point where it should hit an error and debug
but instead it just stops running. I can then access the spreadsheet and
make any changes I want, which I shouldn't be able to do. Any ideas why this
is happening? The error is coming because the macro tries to update links to
an external worksheet but the current spreadsheet is not linked to the
external one.

Thanks

Adam Bush
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Instead of debugging, code just stops running

You might want to consider posting your code, it will make it easier to get
some assistance.

Have you tried opening the VBE (Alt + F11) to step through the macro 1 line
at at time by pressing F8. Move your cursor to a any location within the
macro and press F8. A highlight appears to indicate which line is being
executed, press F8 again to process the line and repeat until either all
lines have been executed (indicating that there are no errors) or until an
error is encountered. At least you'll know where the error is occurring.
--
Kevin Backmann


" wrote:

I have a macro that gets to a point where it should hit an error and debug
but instead it just stops running. I can then access the spreadsheet and
make any changes I want, which I shouldn't be able to do. Any ideas why this
is happening? The error is coming because the macro tries to update links to
an external worksheet but the current spreadsheet is not linked to the
external one.

Thanks

Adam Bush

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
VB code for running a macro rcc Excel Discussion (Misc queries) 3 January 23rd 08 02:53 AM
can someone make code for tab/enter stops for me please? officegirl77 Excel Discussion (Misc queries) 0 November 21st 07 04:43 PM
why excel stops running?? usiddiqi Excel Discussion (Misc queries) 2 May 17th 06 10:14 AM
Automatically running code Richard Excel Worksheet Functions 1 February 7th 06 09:35 PM
running code mark New Users to Excel 3 March 14th 05 09:14 AM


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

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"