Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Change To Read Only

When I send the Excel Workbook via email, it is automatically Read Only,
however, when the user opens the file and saves it, the file is no longer
read only.

I want to allow users of the program to edit cells, run macros, etc,
however, I do not want them to be able to save over the original Excel
spreadsheet that I originally sent.

How can I use VBA to automatically prompt (after running the macro) to Save
As - WITHOUT specifying a path/filename? I cannot have it automatically save
as a specific path because everyone's will be different (due to user names,
etc).
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Change To Read Only

Check out the Workbook_BeforeSave event. You can check the value of SaveAsUI
and set Cancel=true if required.
Also, Application.GetOpenFilename may be useful.

NickHK

"Keep It Simple Stupid" wrote
in message ...
When I send the Excel Workbook via email, it is automatically Read Only,
however, when the user opens the file and saves it, the file is no longer
read only.

I want to allow users of the program to edit cells, run macros, etc,
however, I do not want them to be able to save over the original Excel
spreadsheet that I originally sent.

How can I use VBA to automatically prompt (after running the macro) to

Save
As - WITHOUT specifying a path/filename? I cannot have it automatically

save
as a specific path because everyone's will be different (due to user

names,
etc).



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
How do I change a workbook from read only? Lottie Excel Discussion (Misc queries) 1 November 30th 06 11:39 PM
Don't change read only documents, or at least don't ask me about t Aaron Oxford Excel Discussion (Misc queries) 7 September 11th 06 01:36 PM
how can i change column to read a.b.c.etc and not 1.2.3. Column Chris Excel Discussion (Misc queries) 2 April 6th 06 10:35 AM
Change Read-Only Recommended Prompt brookly Excel Programming 1 April 1st 06 07:12 AM
My speadsheet won't change out of Read Only - Help!! Shelley Parkin Excel Discussion (Misc queries) 3 June 15th 05 01:58 AM


All times are GMT +1. The time now is 07:52 PM.

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

About Us

"It's about Microsoft Excel"