Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

On Error GoTo Doesn't Work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bjdesa@cyber.net.pk - 29 Nov 2007 20:48 GMT
When the active cell doesn't have a Reference Name the "On Error GoTo
ExitMe" does not trigger but instead I get the runtime error 1004.
Could you please tell me what I am doing wrong? Thanks-

Private Sub CancelButton_Click()
   Me.Hide
End Sub

Private Sub OKButton_Click()
   Me.Hide
End Sub

Private Sub UserForm_Activate()
   On Error GoTo ExitMe
   TextBox1.Text = ActiveCell.Name.Name
   GoTo Done
ExitMe:
   TextBox1.Text = "Sorry this cell does not have a refrence name"
Done:
End Sub
Dave Peterson - 29 Nov 2007 21:22 GMT
Check your other post.

> When the active cell doesn't have a Reference Name the "On Error GoTo
> ExitMe" does not trigger but instead I get the runtime error 1004.
[quoted text clipped - 16 lines]
> Done:
> End Sub

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.