ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   vb code to save a spreadsheet to file (https://www.excelbanter.com/excel-programming/355140-vbulletin-code-save-spreadsheet-file.html)

ASU

vb code to save a spreadsheet to file
 
I'm stuck....I have one spreadsheet in which there is a form which get
completed by other users. What I would like to do is be able to save this
sheet to a different file using the date to file it under. Also as read only.
Many thanks.
--
ASU

NickHK

vb code to save a spreadsheet to file
 
ASU,
Did you look at the .SaveAs method ?
MyWB.SaveAs Format(Now(),"YYYYMMDD")

regarding Read Only, use SetAttr.

NickHK

"ASU" wrote in message
...
I'm stuck....I have one spreadsheet in which there is a form which get
completed by other users. What I would like to do is be able to save this
sheet to a different file using the date to file it under. Also as read

only.
Many thanks.
--
ASU





All times are GMT +1. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com