LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Trying to protect output file with Macro

Read-Only Recommended does not make the file read-only.

You need to set the WriteResPassword to make the file read-only.

--

Vasant

"dumbass" wrote in message
...
Hi-
after a user processes my spreadsheet, an output file is created which I

would like to save as a protected text-file, read-only. But somehow my macro
does not put any protection on the output file, nor is it read-only. Here is
the code:

Sheets("BranchOutputCheck").Select
ActiveWorkbook.SaveAs Filename:= _
netwrkpath2, FileFormat:=xlText, _
password:=pswd, ReadOnlyRecommended:=True, CreateBackup:=False

Thanks for the help!



 
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
Checkbox - Output results to a csv file Ephraim Excel Worksheet Functions 4 March 31st 10 03:51 PM
output to the same line in a Text file? Bernard Excel Discussion (Misc queries) 2 November 25th 09 08:12 PM
Need Help With Loop That Creates Output File Jenny Marlow Excel Discussion (Misc queries) 0 April 23rd 08 11:23 PM
Open a print output sent to file Ted Johnston Excel Discussion (Misc queries) 0 February 24th 06 10:10 AM
how do i password protect an .xls file? how do i unlock it for automation. e.g. want to unlock and access a .xls from another .xls macro. Daniel Excel Worksheet Functions 1 June 24th 05 02:59 PM


All times are GMT +1. The time now is 08:40 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"