Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I stop the Yes/No/Cancel Buttons when saving an Excel Doc in A

Status
Not open for further replies.

lowflight9

Technical User
Feb 4, 2003
7
DE
How can I stop the Yes/No/Cancel Buttons when saving an Excel Doc in Access?
 
You could try the Sendkeys function. For example, assuming the default for the question is Yes, then send a carriage return via the SendKeys function.
 
If you're using the excle object, set the DisplayAlerts to False:

Code:
Dim xlApp as Excel.Application

'... code to set objects here

xlApp.DisplayAlerts = False

'... Manipulate & save workbook


HTH

Cheers
Nikki
 
If you use code, add it: doCmd.setworning false.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top