Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Saved seems not to work

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saved seems not to work


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lost work that wasn't saved. Can I retrieve it? How? Beverly 1031 investor, Florida Excel Discussion (Misc queries) 0 March 8th 07 09:03 PM
IF / VLOOKUP formula won't work until saved tawtrey(remove this )@pacificfoods.com Excel Worksheet Functions 2 August 4th 05 11:55 PM
Can not work with saved files Totallylost Excel Discussion (Misc queries) 3 February 23rd 05 09:49 PM
How to get saved old saved work that was saved over? Maral Excel Discussion (Misc queries) 1 February 20th 05 08:59 PM
ThisWorkbook.Saved does not work! Niklas[_3_] Excel Programming 5 November 25th 03 01:26 PM


All times are GMT +1. The time now is 03:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"