Object variable not set

  • Thread starter Thread starter David
  • Start date Start date
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.
 
Back
Top