Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I wrote a macro that generates an exel file and I save it with save as, but I
don't close it to give the users the possibility to change the file. The problem I got, is that, when closing the file, Exel doesn't ask to save the changes, consequence: the users loose all their additions-changes etc, and they are angry (more than acceptable). I added a last line : ActiveWorkbook.Saved = False, and checked it: the status is false, but it does not make a difference. So, please help. -- Sometimes frustrated. Guido |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello Guido, Before a workbook is saved the Workbook.Path = "" and Workbook.Saved = False. Once you Save As, Excel sets the Workbook.Path. That's how Excel knows the Workbook has been saved. You can bring up the Save As dialog in your code at anytime regardless of these 2 property settings. DISPLAY SAVE AS DIALOG: Application.Dialogs(xlDialogSaveAs).Show Sincerely, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=380180 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
lost work that wasn't saved. Can I retrieve it? How? | Excel Discussion (Misc queries) | |||
IF / VLOOKUP formula won't work until saved | Excel Worksheet Functions | |||
Can not work with saved files | Excel Discussion (Misc queries) | |||
How to get saved old saved work that was saved over? | Excel Discussion (Misc queries) | |||
ThisWorkbook.Saved does not work! | Excel Programming |