Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Dialog Box Buttons

I generally use standard Yes/No dialog boxes in my worksheets. I have
a need to have a check box at the bottom so users can choose not to
see the dialog box again. I inserted an Excel 5.0 dialog box with a
YES & NO buttons and a check box at the bottom. Does anyone know how I
capture the button the user presses so I can code the macro to
continue or stop? (It is siliar to the task I am trying to accomplish
in the code below if that helps with the explanation.) Thanks for any
help -Michael

Msg = "Compare Cash Value to Balance" & Chr(10) + acct1
Style = vbYesNo
Title = " Cash Verification"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then
Application.Run macro:="chk_units"
Else
Sheets("Main").Select
Range("b2").Select
End If
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Dialog Box Buttons

Didn't you assign a different macro to each button?

If you did, don't you already know which button the user clicked--since you're
running that assigned macro?



mburkett wrote:

I generally use standard Yes/No dialog boxes in my worksheets. I have
a need to have a check box at the bottom so users can choose not to
see the dialog box again. I inserted an Excel 5.0 dialog box with a
YES & NO buttons and a check box at the bottom. Does anyone know how I
capture the button the user presses so I can code the macro to
continue or stop? (It is siliar to the task I am trying to accomplish
in the code below if that helps with the explanation.) Thanks for any
help -Michael

Msg = "Compare Cash Value to Balance" & Chr(10) + acct1
Style = vbYesNo
Title = " Cash Verification"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then
Application.Run macro:="chk_units"
Else
Sheets("Main").Select
Range("b2").Select
End If


--

Dave Peterson
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
Mac Excel 2008 Problem Using Excel 4.0 XLM Dialog Box Option Buttons Mike Middleton Excel Programming 9 March 9th 09 06:38 PM
Dialog Box With Macro Buttons (VBA) Peter W Soady \(UK\) Excel Discussion (Misc queries) 4 August 20th 06 07:37 PM
How to permanently change Dialog Caption while in the Dialog MikeZz Excel Programming 0 July 11th 06 04:14 PM
why don't buttons in the header dialog box show screen tip? AvidStudent20885 Excel Discussion (Misc queries) 1 March 27th 06 04:01 PM
How to add tool buttons in custom header & footer dialog box? wbfree2 Setting up and Configuration of Excel 1 January 23rd 06 06:16 PM


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