Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Application on error sub possible ?

Hi all,

Many thanks in anticipation.
I have some VBA running with application.Visible = False .
While everything works fine, and errors are unlikely - they are still possible.
Is there a means of setting a global "on error" command such that the application will be made visible again - otherwise it will stall invisibly.
Many thanks :)

Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Application on error sub possible ?

Hi
maybe something like
sub foo()
application.Visible = False
on error goto errhandler
'your code
exit sub

errhandler:
application.Visible = True
end sub


--
Regards
Frank Kabel
Frankfurt, Germany


Mike Iacovou wrote:
Hi all,

Many thanks in anticipation.
I have some VBA running with application.Visible = False .
While everything works fine, and errors are unlikely - they are still
possible.
Is there a means of setting a global "on error" command such that the
application will be made visible again - otherwise it will stall
invisibly. Many thanks :)

Mike


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Application on error sub possible ?

Many thanks Frank. I'll try that out... I'm sure it will work perfectly ;)

"Frank Kabel" wrote:

Hi
maybe something like
sub foo()
application.Visible = False
on error goto errhandler
'your code
exit sub

errhandler:
application.Visible = True
end sub


--
Regards
Frank Kabel
Frankfurt, Germany


Mike Iacovou wrote:
Hi all,

Many thanks in anticipation.
I have some VBA running with application.Visible = False .
While everything works fine, and errors are unlikely - they are still
possible.
Is there a means of setting a global "on error" command such that the
application will be made visible again - otherwise it will stall
invisibly. Many thanks :)

Mike



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
Application error Visual basic code not shown in excel New Users to Excel 1 September 9th 08 05:59 PM
application error hahn Excel Discussion (Misc queries) 0 October 15th 07 09:29 PM
Macro Run-time Error 1004 Application Defined or Object Defined Error Anddmx Excel Programming 6 June 9th 04 03:40 PM
Help! Application Error _< WEIWEIWEI Excel Programming 4 March 1st 04 01:15 PM
Runtime Error 1004 -- Application Defined or Object Defined Error John[_51_] Excel Programming 3 September 4th 03 04:28 PM


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