W
Will
I have a form with rectangles on it which display the shape of offices. My
Code is the following:
Private Sub shpAB12567C_Click()
Call SelectLoc "shpAB12567C"
Me.shpAB12567C.BackColor = vbRed
End Sub
Is there a way to pickup the sub name/control name from within the
procedure, to save me from specifying it for each control on the form. E.g.
I'm looking to do the following so I can just copy & paste for each control.
Private Sub shpAB12567C_Click()
Call SelectLoc Me.ControlName
Me.ControlName.BackColor = vbRed
End Sub
I have looked at active control but it doesn't work with rectangle shapes.
thanks
Code is the following:
Private Sub shpAB12567C_Click()
Call SelectLoc "shpAB12567C"
Me.shpAB12567C.BackColor = vbRed
End Sub
Is there a way to pickup the sub name/control name from within the
procedure, to save me from specifying it for each control on the form. E.g.
I'm looking to do the following so I can just copy & paste for each control.
Private Sub shpAB12567C_Click()
Call SelectLoc Me.ControlName
Me.ControlName.BackColor = vbRed
End Sub
I have looked at active control but it doesn't work with rectangle shapes.
thanks