Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default 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
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default 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

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
Custom Views Error Message Phippsy Excel Discussion (Misc queries) 3 September 9th 08 01:42 PM
Custom Error Message jnf40 Excel Programming 0 August 31st 06 05:29 PM
replace VBA run-time error message with custom message BEEJAY Excel Programming 13 July 14th 06 03:59 PM
Custom error-message for MatchRequired ComboBox Gert-Jan Excel Programming 1 June 21st 06 09:51 PM
Why error message when trying to display custom view? creativeops Excel Discussion (Misc queries) 2 January 9th 06 09:57 PM


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