ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to refer a Variable across Workbooks ? (https://www.excelbanter.com/excel-programming/283713-how-refer-variable-across-workbooks.html)

Prabhu Dev

How to refer a Variable across Workbooks ?
 
Hi,

I am using Excel-97. I need to refer to a Public variable
in UserForm1 in WorkBook1 from WorkBook2. How can I ?

Public bLoginStatus as Boolean

Any help is appreciated.

Thank you.


Vasant Nanavati

How to refer a Variable across Workbooks ?
 
I believe the only way would be to set a reference from Workbook2 to
Workbook1 using Tools | References in the VBE.

--

Vasant

"Prabhu Dev" wrote in message
...
Hi,

I am using Excel-97. I need to refer to a Public variable
in UserForm1 in WorkBook1 from WorkBook2. How can I ?

Public bLoginStatus as Boolean

Any help is appreciated.

Thank you.





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

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