Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA and Multiple Excel Files
Resolved · Low Priority · Version 2003
Matthew has attended:
Excel VBA Intro Intermediate course
Is it possible to have the VBA code go into multiple excel workbooks that are not necessarily open and pull out values / data?
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.
|
Excel tip:Move data worksheet to worksheetTo move data from one worksheet to another, highlight the data. |
We'll call during UK business hours
Server loaded in 0.08 secs.