Solved

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

Posted on 2010-08-15
2
621 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 500 total points
ID: 33442270
0
 

Author Closing Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now