Name
Application.ThisWorkbook
Synopsis
Returns the Workbook
object of the Excel file that contains the current procedure. ThisWorkbook
is different from ActiveWorkbook
in that ActiveWorkbook
changes based on the current selection, whereas ThisWorkbook
always refers to the file that contains the running code.
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.