thinksriniii
Board Regular
- Joined
- Apr 1, 2009
- Messages
- 93
HI guys,
Can someone help me with this. I have inserted a listbox and based on the value selected a picture should be poped. I have searched the forum and got the code below. But it is throwing an error message "object required"
Then i modified it to
still it is not working and the same error is thrown . can someone help
Can someone help me with this. I have inserted a listbox and based on the value selected a picture should be poped. I have searched the forum and got the code below. But it is throwing an error message "object required"
Private Sub ListBox1_Change()
If ListBox1.Value = "x" Then
Pictures("Picture 1").Visible = True
Else
Pictures("Picture 1").Visible = False
End If
End Sub
Then i modified it to
Sub ListBox1_Change()
If listbox1.Value = "1" Then
activesheets.Shapes("Picture 1").Visible = True
Else
activesheets.Shapes("Picture 1").Visible = False
End If
End Sub
still it is not working and the same error is thrown . can someone help