vba and multiple excel
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA and Multiple Excel Files

VBA and Multiple Excel Files

resolvedResolved · Low Priority · Version 2003

replyReply Thu 2 Apr 2009, 16:50Delegate Matthew said...

Matthew has attended:
Excel VBA Intro Intermediate course

VBA and Multiple Excel Files

Is it possible to have the VBA code go into multiple excel workbooks that are not necessarily open and pull out values / data?

For upcoming training course dates see: Pricing & availability

replyReply Thu 9 Apr 2009, 11:24Trainer Carlos said...

RE: VBA and Multiple Excel Files

Hi Matthew

If you want to open a closed workbook from another workbook to then copy values from it you write the following code:

Application.Workbooks.Open "C:\My Documents\Accounts\2008 Accounts.xls"

The full path of the Workbook's address can be found using Windows Explorer and copied in. The path is a string.

The Workbooks.Open method also allows you to set other Worksheet values like passwords

Hope this helps

Carlos

Thu 16 Apr 2009: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel-training-course and other Microsoft training courses.

Excel tip:

Creating Quick Column Charts

Select the information you want to appear in the chart and press F11. This creates a new chart on a seperate worksheet.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard