hello all,
im writing code for a map of a hotel where i want users to be able to click a label and it shows the details of the room.
im looking for an easy way to call a function based on the label value.
something along the lines of
rather then having to type
400 times...
im writing code for a map of a hotel where i want users to be able to click a label and it shows the details of the room.
im looking for an easy way to call a function based on the label value.
something along the lines of
Code:
Private Sub Label2_Click()
Call rooms (thisLable.Value)
End Sub
rather then having to type
Code:
Private Sub Label2_Click()
Call rooms (Label2.Value)
End Sub
Private Sub Label3_Click()
Call rooms (Label3.Value)
End Sub