![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Posts: 210
|
Is there a way to bring up a yes / no box to stop or continue a macro?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: =ActiveCell.Address
Posts: 478
|
A simple message box should do the trick, i.e. Sub continue() CarryOn = MsgBox("Do you wanna carry on?", vbYesNo, "Continue?") If CarryOn = vbYes Then 'put rest of code here End If End sub |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Sub Yes_No_Msg()
ans = MsgBox("Your Question Here?", vbYesNo) If ans = vbYes Then 'Yes your code here Else 'No your code here End If End Sub
__________________
It's never too late to learn something new. Ricky |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|