K
Krakmup
I generate a variable, named "MyVariable", using the Public statement. When
the variable is set, I want to use the contents in another document, using
the same name, within the new documents macro.
Example
MyVariable = "55555"
ChangeFileOpenDirectory _
"C:\MyDocuments\"
Documents.Open "Filename.doc"
Application.Run MacroName:="Look4Me"
In "Look4Me", I set a variable equal to MyVariable, but MyVariable is always
empty.
The original document which identified MyVariable is still open and running.
How can I keep the variable contents?
Tanks
the variable is set, I want to use the contents in another document, using
the same name, within the new documents macro.
Example
MyVariable = "55555"
ChangeFileOpenDirectory _
"C:\MyDocuments\"
Documents.Open "Filename.doc"
Application.Run MacroName:="Look4Me"
In "Look4Me", I set a variable equal to MyVariable, but MyVariable is always
empty.
The original document which identified MyVariable is still open and running.
How can I keep the variable contents?
Tanks