Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Getting rid of warning messages
I have a spreadsheet that starts off with 2 worksheets. I
use an Access 2002 TransferSpreadsheet method to transfer two more worksheets into the file. Then, the Auto_Open macro copies the second two worksheets to the first two worksheets (with different names) for formatting, and deletes the ones that were exported from Access. The problem is that it pops up a warning message asking "are you sure" when it goes to delete each worksheet, so it pops up twice. Is there a way to make it stop popping up? I'm much better with Access VBA than Excel VBA, so I'm looking for the Excel VBA equivalent of a 'SetWarnings = False' statement in Access VBA. Thanks! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Getting rid of warning messages
Application.DisplayAlerts=False
Your Code Application.DisplayAlerts=True wrote in message ... I have a spreadsheet that starts off with 2 worksheets. I use an Access 2002 TransferSpreadsheet method to transfer two more worksheets into the file. Then, the Auto_Open macro copies the second two worksheets to the first two worksheets (with different names) for formatting, and deletes the ones that were exported from Access. The problem is that it pops up a warning message asking "are you sure" when it goes to delete each worksheet, so it pops up twice. Is there a way to make it stop popping up? I'm much better with Access VBA than Excel VBA, so I'm looking for the Excel VBA equivalent of a 'SetWarnings = False' statement in Access VBA. Thanks! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Getting rid of warning messages
Try this,
Application.DisplayAlerts = False -----Original Message----- I have a spreadsheet that starts off with 2 worksheets. I use an Access 2002 TransferSpreadsheet method to transfer two more worksheets into the file. Then, the Auto_Open macro copies the second two worksheets to the first two worksheets (with different names) for formatting, and deletes the ones that were exported from Access. The problem is that it pops up a warning message asking "are you sure" when it goes to delete each worksheet, so it pops up twice. Is there a way to make it stop popping up? I'm much better with Access VBA than Excel VBA, so I'm looking for the Excel VBA equivalent of a 'SetWarnings = False' statement in Access VBA. Thanks! . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help please - warning messages | Excel Worksheet Functions | |||
Help please - warning messages | Excel Worksheet Functions | |||
Warning Messages | Excel Worksheet Functions | |||
Excel hyperlinks - disabling warning messages | Links and Linking in Excel | |||
How to prevent warning messages on protected work sheet. | Excel Worksheet Functions |