Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone please tell me how to turn off warnings in Excel VBA in the way
you would do this in Access? DoCmd.SetWarnings False Whenever the code closes a workbook, the prompt is displayed saying I've pasted a large amount of data to the clipboard, etc. and this needs to be part of an automated process. Also how would you trigger a macro to run when a particular workbook is opened? Thanks in advance, -- Glenn |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Glenn Suggs wrote: Can someone please tell me how to turn off warnings in Excel VBA in the way you would do this in Access? DoCmd.SetWarnings False Whenever the code closes a workbook, the prompt is displayed saying I've pasted a large amount of data to the clipboard, etc. and this needs to be part of an automated process. Also how would you trigger a macro to run when a particular workbook is opened? Thanks in advance, -- Glenn Try Application.DisplayAlerts = False That should take care of most (all?) such prompts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the Workbook_Open event in the ThisWorkbook class.
Also how would you trigger a macro to run when a particular workbook is opened? "Glenn Suggs" wrote: Can someone please tell me how to turn off warnings in Excel VBA in the way you would do this in Access? DoCmd.SetWarnings False Whenever the code closes a workbook, the prompt is displayed saying I've pasted a large amount of data to the clipboard, etc. and this needs to be part of an automated process. Also how would you trigger a macro to run when a particular workbook is opened? Thanks in advance, -- Glenn |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Make sure you turn them back on again when you close the workbook.
application.displayalerts = true -- JNW "Bill Pfister" wrote: Use the Workbook_Open event in the ThisWorkbook class. Also how would you trigger a macro to run when a particular workbook is opened? "Glenn Suggs" wrote: Can someone please tell me how to turn off warnings in Excel VBA in the way you would do this in Access? DoCmd.SetWarnings False Whenever the code closes a workbook, the prompt is displayed saying I've pasted a large amount of data to the clipboard, etc. and this needs to be part of an automated process. Also how would you trigger a macro to run when a particular workbook is opened? Thanks in advance, -- Glenn |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
disable Warnings in Excel | Excel Worksheet Functions | |||
VB Help (Excel Warnings) | Excel Programming | |||
Disabling some MS Excel warnings. | Excel Discussion (Misc queries) | |||
Excel Macro Warnings | Excel Programming | |||
Getting rid of Outlook warnings from excel macro | Excel Programming |