Link to home
Start Free TrialLog in
Avatar of artemis1
artemis1

asked on

Opening One Excel Workbook from Another (Both on SharePoint) Using VBA

I am updating VBA code to open an Excel file from another Excel file (same Excel templates containing same code except different content); both are located in SharePoint document libraries. The Excel workbook was created in 2003 with VBA code originally accessing files saved on network folders. Workbook was then saved in 2007 and is being updated to work accessing workbooks on SharePoint document libraries. Code is:


   Workbooks.Open strPath

where
strPath = "//server//......xslm"

The code actually opens the child workbook, but then triggers an error saying something like "procedure was interrupted unexpectedly". When you manually try to save/close the sheet it displays an "Out of Memory" pop-up. Code worked fine when using Excel 2003 and network folders on 2003 Office environment. Any help on how to correctly do this in Excel 2007/SharePoint would be greatly appreciated - thank you.
ASKER CERTIFIED SOLUTION
Avatar of Emenizer
Emenizer
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of artemis1
artemis1

ASKER

It worked - thanks.