Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 395
Default open from sharepoint

In your code, the slash you are adding is not the same orientation as the
rest of your slashes. Perhaps that is causing problems?


"Thanks" wrote:

I am modifying existing code that opens files on the network drive to open
the same file on our sharepoint site (HTTP://www.oursharepointsite.com/My
Folder/My Other Folder/MyFile.prn).

I am using the following


Dim sFolder as string
Dim sFilesInPath as string

sFolder=ThisWorbook.path



If Right(sfolder, 1) < "\" Then
sfolder = sfolder & "\"
End If
FilesInPath = Dir(sfolder & "*.prn")

But I get a run-time error 52
sFolder is being set to HTTP://www.oursharepointsite.com/My Folder/My Other
Folder
but if I turn on the recorder and open the file I get
HTTP://www.oursharepointsite.com/My%.../My%20Other%20 Folder

Can this be fixed?
Thanks!


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
Wht can't I open Excel files from Sharepoint any more? HH Excel Discussion (Misc queries) 1 January 17th 10 08:49 PM
VBA Code to open an Excel file on a sharepoint site Vit[_2_] Excel Programming 4 September 4th 08 08:01 AM
How do I force a workbook to open in Excel from a Sharepoint libra Kassern Excel Discussion (Misc queries) 0 June 6th 07 09:30 PM
Can a Macro open workbooks on a SharePoint Site? Randy Excel Discussion (Misc queries) 0 August 29th 06 07:21 PM
Cant open SharePoint Lists IT PHYTOSAN Excel Discussion (Misc queries) 0 August 3rd 05 12:42 AM


All times are GMT +1. The time now is 06:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"