Solved

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

Posted on 2010-08-15
2
627 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
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.

860 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