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

Saving Excel file after use by attachmate

Status
Not open for further replies.

scottian

Programmer
Jul 3, 2003
955
GB
Ive got an attachmate macro that reads an excel file, gets the bit of info i need and then writes to the file "Done". But when alls said and done and the macro tries to close the file I get the 'Save' prompt. Is there anyway to get the macro to save the file before closing it therefore eliminating human intervention?

Ive already searched this forum but cant seem to get the '.save' to work.

"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 




Hi,

In excel, using the appliction object that you have set...
Code:
xl.displayalerts=false
xl.workbookobject.save
....


Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top