Autosave doesn't work

A

Alonso Vilela

I use Automation with excel but When I change the name of the book and
sheets, later I save the book, but all the time and end show me a message if
I want to save the changes in the book.

I set autosave in true but doesn't work.

Help me please.
 
J

Jim Rech

If you're expecting the AutoSave add-in to help you, it does not load with
Excel under automation.

If, on the other hand, you're saying that you are making changes, saving the
workbook and still Excel prompts you to save changes, I'd suggest telling
Excel that the workbook is saved just before closing it:

Set XL = CreateObject("Excel.Application")
XL.Visible = True
XL.Workbooks.Add
XL.Activesheet.Range("A1").Value = 1
XL.ActiveWorkbook.Saved = True
XL.ActiveWorkbook.Close ''No prompt

--
Jim
|I use Automation with excel but When I change the name of the book and
| sheets, later I save the book, but all the time and end show me a message
if
| I want to save the changes in the book.
|
| I set autosave in true but doesn't work.
|
| Help me please.
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top