Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wht can't I open Excel files from Sharepoint any more? | Excel Discussion (Misc queries) | |||
VBA Code to open an Excel file on a sharepoint site | Excel Programming | |||
How do I force a workbook to open in Excel from a Sharepoint libra | Excel Discussion (Misc queries) | |||
Can a Macro open workbooks on a SharePoint Site? | Excel Discussion (Misc queries) | |||
Cant open SharePoint Lists | Excel Discussion (Misc queries) |