I have a global variable declared in a module:

Global Const HKEY_USERS = &H80000003

How can I call this long variable by name in a function?

Let's say I have a function and I would like to have the first parameter be the global constant.

I want to have the user type the global variable name into
a text box and then have the OnClick event of a command button call a Sub with the constant as a parameter.

Call Myfunction(Text1.Text) gives me an error. |where text1.text = "HKEY_USERS"

this doesn't work. Any help guys?