vba courses london - macros enabling them
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 VBA Training and help » vba courses london - Macros - Enabling them to work across multiple workbooks

vba courses london - Macros - Enabling them to work across multiple workbooks

resolvedResolved · Low Priority · Version Standard

replyReply Tue 12 Dec 2006, 10:46Delegate Alex said...

Macros - Enabling them to work across multiple workbooks

I seem to remember from my course something about Macros being allowed to work across different workbooks? Is there a way of enabling this?

For upcoming training course dates see: Pricing & availability

replyReply Tue 12 Dec 2006, 12:02Trainer David said...

RE: Macros - Enabling them to work across multiple workbooks

Hi Alex

I believe the peice of VBA code that you are looking for, to include in your macro is:

Workbooks("YourWorkbook").activate

where you place the name of your workbook in the above statement where is says yourworkbook.

If this does not solve your problem get back to me

Hope this helps

David

 

Vba tip:

Use GoTo to Select A Cell With VBA

To select a certain cell on a Worksheet you can use:

Application.Goto Reference:=Range("V300")

or more simply

Range("V300").Select

If, on the other hand, you want the selected cell to be the top/left cell on the screen you use:

Application.Goto Reference:=Range("V300"), Scroll=True

View all VBA 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