Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default how to save /make excel file as read only?

Hello,

I need to save an excel file as a read only file for viewing from a website.
How to save it as read only? I really need to save the file as an xml file.
Excel already does that, and the xml file opens up inside IE. But I need
that file to be read only. I am thinking that if I make the excel file read
only - when I save it down as xml the xml will copy the read only attribute.
But how to make the file read only?

Thanks,
Rich
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default how to save /make excel file as read only?

With the file closed

Setattr "fullname" vbReadonly

Regards,
Peter T

"Rich" wrote in message
...
Hello,

I need to save an excel file as a read only file for viewing from a

website.
How to save it as read only? I really need to save the file as an xml

file.
Excel already does that, and the xml file opens up inside IE. But I need
that file to be read only. I am thinking that if I make the excel file

read
only - when I save it down as xml the xml will copy the read only

attribute.
But how to make the file read only?

Thanks,
Rich



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default how to save /make excel file as read only?

Thanks. That worked perfectly

Rich

"Peter T" wrote:

With the file closed

Setattr "fullname" vbReadonly

Regards,
Peter T

"Rich" wrote in message
...
Hello,

I need to save an excel file as a read only file for viewing from a

website.
How to save it as read only? I really need to save the file as an xml

file.
Excel already does that, and the xml file opens up inside IE. But I need
that file to be read only. I am thinking that if I make the excel file

read
only - when I save it down as xml the xml will copy the read only

attribute.
But how to make the file read only?

Thanks,
Rich




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 make an Excel 2007 file read-only? happycat Excel Discussion (Misc queries) 2 December 19th 08 03:49 PM
How do you save an excel file to be read as IBM-type text file ? Dee Franklin Excel Worksheet Functions 2 October 10th 06 02:46 AM
How can I save an Excel file which says it's a Read only to a CD? Cindy Who Excel Discussion (Misc queries) 2 March 24th 06 11:19 PM
How to make the column in the excel file as read-only? Manu Excel Programming 3 April 25th 05 03:31 AM
Make excel open file without Read Only dialog Saul Margolis Excel Discussion (Misc queries) 2 March 16th 05 03:30 PM


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