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

I would like to know if it possible to make a custom dialog when there is a
error in a macro in a module. So, not for a single macro, but for all.

Thanks in advance, Gert-Jan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Error dialog


"Gert-Jan" schreef in bericht
.. .
I would like to know if it possible to make a custom dialog when there is a
error in a macro in a module. So, not for a single macro, but for all.

Thanks in advance, Gert-Jan



If you have a userform with 1 label and an OK-button, you're already there.

errorForm.Label1.Caption = "This is the error message"
errorForm.Show


All you have to do is to change the error messages in the subs you're
running.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Error dialog

This is a very simple solution; I could have created it myself :-)

What I want is a standard function in a module for errors.

Gert-Jan


"moon" schreef in bericht
. ..

"Gert-Jan" schreef in bericht
.. .
I would like to know if it possible to make a custom dialog when there is
a error in a macro in a module. So, not for a single macro, but for all.

Thanks in advance, Gert-Jan



If you have a userform with 1 label and an OK-button, you're already
there.

errorForm.Label1.Caption = "This is the error message"
errorForm.Show


All you have to do is to change the error messages in the subs you're
running.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Error dialog

Not in the sense of a global error handler.
You have to call a routine from each error handler you want to deal with.

NickHK

"Gert-Jan" wrote in message
.. .
This is a very simple solution; I could have created it myself :-)

What I want is a standard function in a module for errors.

Gert-Jan


"moon" schreef in bericht
. ..

"Gert-Jan" schreef in bericht
.. .
I would like to know if it possible to make a custom dialog when there

is
a error in a macro in a module. So, not for a single macro, but for all.

Thanks in advance, Gert-Jan



If you have a userform with 1 label and an OK-button, you're already
there.

errorForm.Label1.Caption = "This is the error message"
errorForm.Show


All you have to do is to change the error messages in the subs you're
running.





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
Error dialog box meaning and how to find error Jeanne Excel Worksheet Functions 2 September 4th 08 04:59 AM
How to avoid an error dialog justaguyfromky Excel Programming 2 February 18th 06 10:02 PM
How to prevent the MS Excel error dialog by errorhandling ? Oscar Excel Programming 1 January 7th 04 03:52 PM
Common Dialog Error ! (Please Help me ! urgently) Michael Xu Excel Programming 1 January 3rd 04 01:47 AM
Common Dialog Error Clement Excel Programming 1 November 19th 03 12:10 PM


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