Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
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 | |||
excel macro to open Sharepoint list in excel and save in my folde | Excel Programming | |||
How do I force a workbook to open in Excel from a Sharepoint libra | Excel Discussion (Misc queries) | |||
Open method of workbooks fails when Excel is hosted in IE | Excel Programming |