LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default easy vba question

Hi experts,
i have a button on a userform called 'cancel'
the sub looks like

Private Sub but_cancel_login_Click()
MsgBox "The program is closed", , "DPA"
error_h 'sub that saves the workbook in a particular way
End Sub

On compiling it gives me an error on the line error_h
The error states that a variable or procedure is expected and not a module

I would just like to show the message and then execute the error_h module
Any ideas?
ThanksPierre


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1
 
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
Easy question (just not for me) Confusicous Excel Discussion (Misc queries) 2 January 4th 10 08:20 PM
probably an easy question Jason Excel Discussion (Misc queries) 4 February 7th 08 05:39 PM
Easy Question M&M[_2_] Excel Discussion (Misc queries) 3 July 24th 07 12:34 AM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM
easy question .... i think Dean Excel Discussion (Misc queries) 1 January 6th 05 06:31 PM


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