Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-08-15
2
Medium Priority
?
656 Views
Last Modified: 2012-08-14
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.
0
Comment
Question by:artemis1
2 Comments
 
LVL 3

Accepted Solution

by:
Emenizer earned 2000 total points
ID: 33442270
0
 

Author Closing Comment

by:artemis1
ID: 33642831
It worked - thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question