VBA Global variables no longer declared after deleting worksheet

前端 未结 2 1140
南笙
南笙 2021-01-18 18:21

I have some public worksheet variables that are first initialized when the workbook is open. I have a button that does this essentially:

Dim Response As Var         


        
2条回答
  •  隐瞒了意图╮
    2021-01-18 18:54

    I just tested it using Comintern foo. It's interesting that the standard module foo losses it value but the public foo variable in a worksheet module does not loses it's value.

提交回复
热议问题