LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Open Sharepoint Hosted Excel File, in Excel, Using VBA

No worries. I had searched through the forums quite extensively to find some
working code, but all I could find were snippets. In the end, it was as easy
as I thought, but I had fatfingered the file string and had not caught it (so
embarrassed).

So, thought I would post it here, lest some other poor sole be on a similar
quest. I have had SO much help from folks like yourself...thought it was my
turn to at least try to help.

Cheers!

Patk

"Patrick Molloy" wrote:

thanks for sharing this

"PatK" wrote in message
...
Figured this out, in case anyone else every has to try this:


Sub OpenPPMWorkBook(dummy)
dim wbname as String
wbname = "\\mysharepoint.mycompany.com\projectfile.xls"
Workbooks.Open wbname
End Sub

"PatK" wrote:

I have read through a variety of folks seeming to want to open / write
excel
files from/to a sharepoint server. I have tried a variety of
permutations to
open an excel file (from an excel based VBA subroutine), but keep getting
a
runtime 424 error (object required) on the workbook.open line. Here are
the
two approaches I have tried:

Workbook.Open "\\mysharepoint.mycompany.com\team\myspfolder\ sub
folder\Myfile Data.xls"

(note there is a blank between "sub" and "folder" above)

or

Workbook.Open
"\\mysharepoint.mycompany.com\team\myspfolder\sub% 20folder\Myfile%20Data.xls"

and neither works. There are spaces in the some of the folder names, as
well as the name of the excel file I am trying to open.

Any idea what I am doing wrong?

Many thanks!
PatK


 
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
excel macro to open Sharepoint list in excel and save in my folde kay Excel Programming 0 July 24th 08 09:46 PM
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
Open method of workbooks fails when Excel is hosted in IE [email protected] Excel Programming 5 January 30th 04 02:19 AM


All times are GMT +1. The time now is 11:30 AM.

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"