ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Workbook Variable (https://www.excelbanter.com/excel-programming/363042-workbook-variable.html)

[email protected]

Workbook Variable
 
Typically I would just run through the help menu for this, but our VBA
program at work doesn't have it, so hopefully this is a simple enough
question:

Is there a way to set a variable as the name of the currently open
workbook/file?


Andrew Taylor

Workbook Variable
 

Dim wb As Workbook
Set wb = ActiveWorkbook


wrote:
Typically I would just run through the help menu for this, but our VBA
program at work doesn't have it, so hopefully this is a simple enough
question:

Is there a way to set a variable as the name of the currently open
workbook/file?



[email protected]

Workbook Variable
 
Brilliantly easy, i just didn't have the know-how. Thanks much for the
help.

Andrew Taylor wrote:
Dim wb As Workbook
Set wb = ActiveWorkbook


wrote:
Typically I would just run through the help menu for this, but our VBA
program at work doesn't have it, so hopefully this is a simple enough
question:

Is there a way to set a variable as the name of the currently open
workbook/file?




All times are GMT +1. The time now is 11:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com