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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel automation from Access (2000)

Status
Not open for further replies.

KenReay

Programmer
Aug 15, 2002
5,424
0
0
GB
Hi

I have an application which automates Excel from within Access, (via VBA) basically it it creates and saves some spreadsheets.

When I initially create the spread sheet and save it (with oWs.SaveAs ..etc) all is OK, but if I need to re-create an existing spreadsheet and save it with .SaveAs I get a warning message that a file exists. I assumed there would be a oWs.Save method, but no, when I try that I get a compile error (Method not available)

Anyone know how to get around this?

Thanks in advance



Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 

Does the "Save as" file already exist or ??? Which one.

DougP, MCP
 
hmmm try:

appExcel.Application.DisplayAlerts = False

save it and put it back on true again.

Hope this is what you meant
 
The Workbook object expose a Save method, not the Worksheet object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top