PC Review


Reply
Thread Tools Rate Thread

custom error message

 
 
Fan924
Guest
Posts: n/a
 
      30th Aug 2010
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?
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      30th Aug 2010
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
 
Reply With Quote
 
BillyBob
Guest
Posts: n/a
 
      30th Aug 2010
Um, what do you think? Out of curiosity, what "instructive" message did you
have in mind?

BillyBob

"Fan924" <(E-Mail Removed)> wrote in message
news:b0c95b52-034f-42ec-bd68-(E-Mail Removed)...
>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?


 
Reply With Quote
 
eliano
Guest
Posts: n/a
 
      1st Sep 2010
On 30 Ago, 01:50, "BillyBob" <billy...@has.onetooth> wrote:
> Um, what do you think? *Out of curiosity, what "instructive" message did you
> have in mind?
>
> BillyBob
>
> "Fan924" <a924...@yahoo.com> wrote in message
>
> news:b0c95b52-034f-42ec-bd68-(E-Mail Removed)...
>
>
>
> >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
 
Reply With Quote
 
norie
Guest
Posts: n/a
 
      2nd Sep 2010
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace VBA run-time error message with custom message =?Utf-8?B?QkVFSkFZ?= Microsoft Excel Programming 9 14th Jul 2006 03:59 PM
Can we show error message in Custom error defaultRedirect page ad Microsoft ASP .NET 2 5th Jul 2005 09:32 PM
Custom error message =?Utf-8?B?Sm9obg==?= Microsoft Access Forms 3 25th Apr 2005 05:45 PM
Custom validator doesnt show error message but shows server error =?Utf-8?B?cG11ZA==?= Microsoft ASP .NET 8 11th Feb 2005 09:13 PM
Help! Need custom error message and rid of Access's message =?Utf-8?B?VGFtbXkgQi4=?= Microsoft Access 3 20th Dec 2003 09:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:00 AM.