ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Global or Workbook level variables. (https://www.excelbanter.com/excel-programming/343324-global-workbook-level-variables.html)

DaveO

Global or Workbook level variables.
 
Guys, I need to create a workbook, not worksheet level VBA variable.
Basically something that spans the whole of the workbook and that can be
accessed by each and every worksheet.

Any ideas on where I can specify this and how?

TIA.

Stefi

Global or Workbook level variables.
 
Make a search with "Workbook level variables" in Programming topic! Just
below your post you will see my old question with excellent answers from Tom
Ogilvy and Bob Phillips!

Regards,
Stefi


€žDaveO€ť ezt Ă*rta:

Guys, I need to create a workbook, not worksheet level VBA variable.
Basically something that spans the whole of the workbook and that can be
accessed by each and every worksheet.

Any ideas on where I can specify this and how?

TIA.


Norman Jones

Global or Workbook level variables.
 
Hi Dave,

In VBA help see:

'Understanding Scope and Visibility'

and

'Public Statement'

See also the examples provided there.

---
Regards,
Norman



"DaveO" wrote in message
...
Guys, I need to create a workbook, not worksheet level VBA variable.
Basically something that spans the whole of the workbook and that can be
accessed by each and every worksheet.

Any ideas on where I can specify this and how?

TIA.





All times are GMT +1. The time now is 10:04 AM.

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