no clue what you mean by frame (probably form).
If you have a variable you want other forms to be able to interact with, you need to change its scope. Basically scope is how famous it is. When you use DIM inside a procedure (sub or function), you get a variable with a local scope. Only code within that same procedure knows about it.
To make it more 'famous,' but the declaration into the general declarations section of the form (general declarations is the very top before the first procedure).
The code should look like this:
Public myVar as String
Then you can work with myVar like any other variable while in that form. Now, if you want to access that variable from another form you need to use this syntax (assuming myVar is declared in a form called frmMain):
frmMain.myVar = "test"
Now, if you want to create a variable the WHOLE program can see (a global variable if you will), use the same public declaration in a standard module in its general declaration. Now everyone knows about that variable.