Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to 'click OK button' automatically in excel
Help!! This is driving me mad and I cannot find a code anywhere to do it
I have macros that open and close spreadsheets / copy large areas of data and I get the normal "Do you want to save your changes?" and "Do you want to keep the information on the clipboard?" dialogue boxes appearing What I want my macro to do is to say "Yes" or"No" automatically - without any user interaction (as the answer to these questions will never change - and to be frank it is damn annoying) Has anyone any idea? I thought I was OK at writing macros until this!!! Ta very muc Net |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to 'click OK button' automatically in excel
To get rid of the "Do you want to save changes" prompt
try this Private Sub Workbook_BeforeClose(Cancel As Boolean) Thisworkbook.saved = true 'this closes without saving application.cutcopymode = false End Sub -----Original Message----- Help!! This is driving me mad and I cannot find a code anywhere to do it! I have macros that open and close spreadsheets / copy large areas of data and I get the normal "Do you want to save your changes?" and "Do you want to keep the information on the clipboard?" dialogue boxes appearing. What I want my macro to do is to say "Yes" or"No" automatically - without any user interaction (as the answer to these questions will never change - and to be frank it is damn annoying). Has anyone any idea? I thought I was OK at writing macros until this!!!! Ta very much Net . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to 'click OK button' automatically in excel
Libb
Thanks - Brilliant - It works! - Sanity has been preserved !!!! Cheer Net |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 files opens blank- need to click on Office button to vi | Excel Discussion (Misc queries) | |||
Excel 2003 won't let me click on a button when i protect document | Excel Discussion (Misc queries) | |||
can i set a button in excel to automatically send the page when | Excel Discussion (Misc queries) | |||
Click button to automatically add row | Excel Worksheet Functions | |||
VBA button click need help. Need LEN help. | Excel Programming |