Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem changing open file from R/0 to R/W

I am trying to change a file that has been saved R/O to R/W, mak
changes to the file and then save as R/O again.

I get the macro to open the file and have tried:

ActiveWorkbook.ChangeFileAccess xlReadWrite

But I then get a message saying file is locked for editing by anothe
user. How can I get round this?

Also if I start with the file R/W and change to R/O (wit
ActiveWorkbook.ChangeFileAccess xlReadOnly), when I try to save it, i
asks me to save as another name. How can I save it as the same name?

Any help would be greatly appreciated. I'm sure there is something ver
obvious that I'm missing

--
Message posted from http://www.ExcelForum.com

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
Problem changing file associations in Excel 2007 Jake Excel Discussion (Misc queries) 2 February 28th 07 12:40 AM
Open excel file problem Jason Zischke Excel Discussion (Misc queries) 11 August 24th 06 02:57 AM
I got a problem when tried to open the file! wsjoo Excel Discussion (Misc queries) 2 June 16th 06 08:11 AM
cannot open documents as viruscan says problem file? Wagon Burner Excel Discussion (Misc queries) 0 February 27th 05 06:27 PM
Open delimited text file to excel without changing data in that file zohanc Excel Programming 1 October 3rd 03 01:06 AM


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