Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default messagebox macro

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default messagebox macro

try changing this:
YESNO = MsgBox("Reconcile " & Range("F4").Value & " ?")

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


"Patrick Bateman" wrote:

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

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
To show a messagebox pol Excel Discussion (Misc queries) 3 July 17th 09 01:05 PM
MessageBox with tick box Sophie Excel Discussion (Misc queries) 3 February 5th 09 02:32 PM
messagebox help SDH Excel Programming 2 April 19th 07 02:34 AM
messagebox help jimE Excel Programming 3 November 3rd 06 07:49 PM
Working around a messagebox JustinR Excel Programming 1 May 26th 04 01:53 AM


All times are GMT +1. The time now is 04:40 AM.

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"