Name

workbook.Activate( )

Synopsis

Activates the workbook giving it focus in Excel and making it the ActiveWorkbook. For example, the following code opens a new workbook, then returns the focus to the current workbook:

Workbooks.Open (ThisWorkbook.Path & "\blank.xls")
ThisWorkbook.Activate

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.