Object variable not set

D

David

I have the following code:

Function Item_Open()
Item.UserProperties("MyVar") = "Some text"
End Function

Sub Button1_Click()
msgbox Item.UserProperties("MyVar")
End Sub

I get the "Object variable not set" message when i click the button. I cant
see my MyVar is not set since I know the Open function is getting called.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top