Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open a file from share

Hello,

what is the best way to open a file from a share?

The following code will get the error 5: runtime error

rc = Shell("\\server\share\test.txt")

Thanks for your help

Maik
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Open a file from share


Try...
rc = Shell("Notepad.exe " & """\\server\share\test.txt""", vbNormalFocus)
--
Jim Cone
Portland, Oregon USA
http://tinyurl.com/ExtrasXL




"Maik"
wrote in message
...
Hello,
what is the best way to open a file from a share?
The following code will get the error 5: runtime error
rc = Shell("\\server\share\test.txt")
Thanks for your help
Maik
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
From share drive particular excel file takes long time to open AshaPadmanabhan Excel Discussion (Misc queries) 0 April 13th 10 05:18 PM
can't open a excel file in share folder Dickson Excel Discussion (Misc queries) 0 September 25th 08 02:21 AM
on network, pc a & pc b share pc x only open [read only] ipcvb Setting up and Configuration of Excel 1 October 7th 05 12:15 AM
Excel Files open very slowly from network share Mayur Sharma Excel Discussion (Misc queries) 0 August 30th 05 11:42 AM
how do you share an open excel file Excel Worksheet Functions 1 January 13th 05 06:57 PM


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