ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   custom error message (https://www.excelbanter.com/excel-programming/443565-custom-error-message.html)

Fan924

custom error message
 
I am getting runtime error 1004 when I run a macro and.... the
imported file is to big. The error is expected.

My question, can I replace this error message with something else?
Something instructive?

Dave Peterson[_2_]

custom error message
 
On error resume next
'your line of code that may cause the error
if err.number < then
err.clear
msgbox "some error just took place!"
end if
on error goto 0



On 08/29/2010 18:41, Fan924 wrote:
I am getting runtime error 1004 when I run a macro and.... the
imported file is to big. The error is expected.

My question, can I replace this error message with something else?
Something instructive?


--
Dave Peterson

BillyBob[_2_]

custom error message
 
Um, what do you think? Out of curiosity, what "instructive" message did you
have in mind?

BillyBob

"Fan924" wrote in message
...
I am getting runtime error 1004 when I run a macro and.... the
imported file is to big. The error is expected.

My question, can I replace this error message with something else?
Something instructive?



eliano[_2_]

custom error message
 
On 30 Ago, 01:50, "BillyBob" wrote:
Um, what do you think? *Out of curiosity, what "instructive" message did you
have in mind?

BillyBob

"Fan924" wrote in message

...



I am getting runtime error 1004 when I run a macro and.... the
imported file is to big. The error is expected.


My question, can I replace this error message with something else?
Something instructive?- Nascondi testo citato


- Mostra testo citato -


Could be that this is a new technique? :-))
Eliano

Norie

custom error message
 
If the error is expected why don't you do something to avoid it?

Check the size of the file perhaps?

Too big - don't continue, right size - continue.

Norie



All times are GMT +1. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com