Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

test to see if you have write access to a folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
red6000 - 14 Jul 2007 16:01 GMT
Hi,

I have some code that saves files to a folder on a another drive (ie
J:\savedfiles\).

Is there any code that can test to see if I have write access to that
folder?

ie:

If  writeaccess to J:\savedfiles\ = true then
  save file here
else
   save file to own drive
end if

Thanks
Russ - 14 Jul 2007 21:00 GMT
You could trap for errors, there is probably a specific error code for can't
save. Type Error in VBA help.
I think vb and vba share some of the same error codes.

http://www.halfile.com/vb.html

> Hi,
>
[quoted text clipped - 13 lines]
>
> Thanks

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.