PC Review


Reply
Thread Tools Rate Thread

Change To Read Only

 
 
=?Utf-8?B?S2VlcCBJdCBTaW1wbGUgU3R1cGlk?=
Guest
Posts: n/a
 
      28th Mar 2007
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 With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      29th Mar 2007
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" <(E-Mail Removed)> wrote
in message news:A64FEDD8-5D64-46C8-8F5F-(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to change database from read only, read only properity false Sarge Microsoft Access Security 0 9th Mar 2010 11:51 PM
How can I change read-only status to read? Alex Microsoft Powerpoint 1 29th Mar 2009 09:03 PM
Can't change the status of a folder from read only to read-write =?Utf-8?B?Um9iaW4=?= Windows XP General 1 19th Oct 2004 03:12 AM
How to change debugging mode from read only to read/write =?Utf-8?B?UmF5?= Microsoft Dot NET Framework 4 28th Sep 2004 08:52 PM
Re: can't change read-only files to not read only Chris Windows XP Accessibility 0 28th Aug 2003 02:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:49 AM.