![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Mar 2002
Posts: 6
|
How can I auto select the "ok" button with a macro? or How can I turn off the "ok/cancle" verification.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
Without knowing which dialog you're referring to can't say for definite. However, I'd bet a pint that this will work:-
Application.DisplayAlerts=False 'Your code which causes the dialog Application.DisplayAlerts=True Excel automatically resets DisplayAlerts back to True anyway at the end of a procedure but it's good practice to do it anyway. HTH, D |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|