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

Below is the code I use to make a copy of sheet 3 in my work book and save
just sheet 3 to a new file saved as a unique value in cell B15. The new
files will be accessable by many people and I would like it if the file was
saved as Read Only so they dont alter any content in the file. Is there an
easy way to alter my VBA code to make this possible rather than going through
each file and protecting them myself?

Sheets("Sheet3").Select
Sheets("Sheet3").Copy
ActiveWindow.ScrollRow = 1
ActiveWorkbook.SaveAs Filename:="\\Hci\HCI Share\C of A's - Building
4\00-RMHTest-6 Parameters\" & _
Range("B15").Value & ".xls"
ActiveWorkbook.Close
Sheets("Sheet1").Select

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default SaveAs Read Only

EDIT:

The new files will be accessable by many people and I would like it if the
file was saved as Read Only or saved with the entire sheet protected so they
dont alter any content in the file. Is there an easy way to alter my VBA
code to make this possible rather than going through each file and protecting
them myself?


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
I have a read only xl file, I need it to be read and write drama queen Excel Discussion (Misc queries) 3 July 1st 06 12:25 AM
XCEL FILE REC'D AS READ ONLY -- HOW TO NOT BE "READ ONLY" billybob Excel Discussion (Misc queries) 1 February 13th 06 03:14 AM
How can a file be converted from Read-Only to Read/Write Jim in Apopka Excel Discussion (Misc queries) 2 November 19th 05 04:59 PM
Help with SaveAs Glen Mettler[_4_] Excel Programming 2 March 4th 05 03:33 PM
More help with SaveAs Glen Mettler[_2_] Excel Programming 2 February 14th 04 02:50 AM


All times are GMT +1. The time now is 04:33 AM.

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"