Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
vba and multiple excel

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

VBA and Multiple Excel Files

ResolvedVersion 2003

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?

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.

Excel tip:

Keyboard Shortcuts to Add Rows or Columns

Couple of other keyboard shortcuts. Shift+spacebar selects a row, Ctrl+spacebar selects a column. Select either row or column (or several) and use Ctrl and + to insert or Ctrl and - to delete rows or columns.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.