Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Is this right (open for write access)

Hi there!
Are these few lines of code correct ?

Workbooks.Open Filename:=FullPath, Notify:=False

' If cranafile opened as read-only then keep trying to
get read/write access

While Workbooks(Cranafile).ReadOnly = True

Application.StatusBar = "Waiting to get read/write
access to " & Cranafile & " ..."
On Error Resume Next
Workbooks(Cranafile).ChangeFileAccess
Mode:=xlReadWrite, Notify:=False

Wend

I'm attempting to ensure the process has read/write
access to <cranafile. This will be run in a multi user
environment where the code is run by several users at
once. I only have a single user system (Windows XP).

Thanks in advance for any useful comments OR confirmation
that it'll be OK.
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
Access an excel file through FTP without write protection jj Excel Discussion (Misc queries) 0 October 10th 05 09:47 PM
write data to access Billy[_2_] Excel Programming 3 December 3rd 03 12:11 PM
Write data to access file through EXCEL Billy[_2_] Excel Programming 0 December 1st 03 05:14 AM
Write data to access file through EXCEL Billy[_2_] Excel Programming 0 December 1st 03 03:22 AM
Can Excel write to an Access DB? Mike[_36_] Excel Programming 1 July 29th 03 05:18 PM


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