Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default MSGBOX UPON ERROR

Hello every1,

I am trying to write a code but also am facing error 1004 at quite some times.

Can anyone help me in writing a proper line of code for a Msgbox displayed
upon occurance of such an error and going to the end of the remaining code so
as to avoid debugging and reminding a simple mistake to be avoided.

Message Box Displaying "Please copy something first!"
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default MSGBOX UPON ERROR

Sub SimpleErrorHandling()
On Error GoTo ErrorHandler
'Your code

ErrorHandler:
MsgBox "Your Message"
End Sub
--
Charles Chickering

"A good example is twice the value of good advice."


"FARAZ QURESHI" wrote:

Hello every1,

I am trying to write a code but also am facing error 1004 at quite some times.

Can anyone help me in writing a proper line of code for a Msgbox displayed
upon occurance of such an error and going to the end of the remaining code so
as to avoid debugging and reminding a simple mistake to be avoided.

Message Box Displaying "Please copy something first!"

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default MSGBOX UPON ERROR

Thanx Charles

No doubt found your xclent example better than two advices, pal!

Thanx again!

"FARAZ QURESHI" wrote:

Hello every1,

I am trying to write a code but also am facing error 1004 at quite some times.

Can anyone help me in writing a proper line of code for a Msgbox displayed
upon occurance of such an error and going to the end of the remaining code so
as to avoid debugging and reminding a simple mistake to be avoided.

Message Box Displaying "Please copy something first!"

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
Would like to getback a MsgBox on error KBrenner Excel Programming 4 April 23rd 06 04:07 AM
MsgBox when an Error occurs Vick Excel Discussion (Misc queries) 1 December 21st 05 08:48 PM
msgbox appear with error msg jrd269 Excel Programming 3 June 2nd 05 04:18 PM
msgbox on error Ciara Excel Discussion (Misc queries) 6 May 26th 05 08:34 PM
MsgBox Code Error MBlake Excel Programming 8 May 2nd 05 11:16 PM


All times are GMT +1. The time now is 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"