ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   public variables, 2 userforms (https://www.excelbanter.com/excel-programming/403228-public-variables-2-userforms.html)

Charlie

public variables, 2 userforms
 
I set ws1 as sheet1 or sheet2 on Userform1.
I need to reference ws1 on Userform2, but it doesn't seem to recognize ws1.
How do I make ws1 public to all forms? I just have Public ws1 as Worksheet
before my code on Userform1
thanks.


All times are GMT +1. The time now is 12:13 PM.

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