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.

messagebox macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patrick Bateman - 27 Nov 2007 13:08 GMT
i have the following macro running off a button to call a messagebox before a
macro is run;

Sub Reconcile_Button()

'button to run "reconcile" macro, first runs dialogue box with YES/NO to
confirm

YESNO = MsgBox("Reconcile " & Range("F4").Value & " ?")
Select Case YESNO
Case vbYes
Call reconcile
Case vbNo

End Select

End Sub

the problem is its not calling theb macro? i have tried this without the
"call" before the macro name but still no luck!! the wierd thing is i have  
this macro on another sheet calling a different macro and it works?

any help would be much appreciated
john - 27 Nov 2007 13:26 GMT
try changing this:
YESNO = MsgBox("Reconcile " & Range("F4").Value & " ?")

to this:
YESNO = MsgBox("Reconcile " & Range("F4").Value & " ?", vbYesNo)
Signature

JB

> i have the following macro running off a button to call a messagebox before a
> macro is run;
[quoted text clipped - 19 lines]
>
> any help would be much appreciated
 
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.