Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cancelling a macro

Hi there,

A few years back I use to write macros, and had some
standard code or functon that would not run the macro if
the macro would generate an error.
Thus no macro actually ran as opposed to half a macro
running and then causing an error.
I seem to recall it was relatively easy to do, but can no
longer remember for the life of me how to do. It wasn't
undoing a macro. Simply not running it if it would crash.


Any help is greatly appreciated.

Naive
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Cancelling a macro

Hi, there are a number of "On Error" options that you could look at.
One being "On Error Exit Sub".

HTH--Lonnie M.

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
Cancelling AutoFilter in a macro Floss Excel Programming 3 August 19th 08 06:54 PM
Stop my references cancelling Mahhrat Excel Discussion (Misc queries) 1 July 24th 08 07:46 AM
Cancelling out of an incorrect Replace all [email protected] Excel Discussion (Misc queries) 2 July 11th 06 12:13 PM
end Macro after cancelling open dialog No Name Excel Programming 1 June 29th 04 08:58 AM
Cancelling the BeforeClose Event Troy[_5_] Excel Programming 6 December 2nd 03 06:40 AM


All times are GMT +1. The time now is 03:18 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"