Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Saving A Read Only File?

Is there a way using VBA, to save an open workbook that is read only? I
can't seem to find any info on this at all.

Thanks,

Todd


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Saving A Read Only File?

How about using saveas something like:

Sub SaveMe()
Dim flname As String
Dim fullName As Variant
Dim filter As String
flname = "SaveName"
filter = "Excel Files (*.xls), *.xls"
fullName = Application.GetSaveAsFilename _
(flname, filter, , "MyFile")
If fullName < False Then
Application.DisplayAlerts = False
ThisWorkbook.SaveAs fullName
Application.DisplayAlerts = True
End If
End Sub

Hope this helps
Rowan

TK wrote:
Is there a way using VBA, to save an open workbook that is read only? I
can't seem to find any info on this at all.

Thanks,

Todd


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
Read only vs file saving Rich D Excel Discussion (Misc queries) 1 October 23rd 07 03:50 PM
Saving over a read only file lawson Excel Programming 1 May 27th 05 06:23 PM
Urgent problem saving a file read only DoctorV[_3_] Excel Programming 4 July 16th 04 04:34 PM
Saving it as read only? andycharger[_24_] Excel Programming 4 April 13th 04 05:02 PM
Saving a file within a macro but only when it does not have a read only attribute Alex Excel Programming 2 September 16th 03 04:19 PM


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