
Originally Posted by
John_G
Saying "it does not work" isn't very helpful.
Does it print anything in the immediate window? Is there an Error message?
Can you post the entire On_Click event code for the button - that might indicate where the problem could be.
The code you posted should work fine - it does for me.
Hi
apologies my button code is
Code:
Private Sub Command51_Click()
Dim tv As TempVar
Debug.Print "TempVars.Count: " & TempVars.Count
For Each tv In TempVars
Debug.Print tv.Name, tv.Value
Next
End Sub
When pressed nothing happens, no error message no screen actions at all.
At the risk of being dispy how to I open the immediate window? as I can't seem to show it hence I can't answer your question
thanks
Ian