I'm new to VBA and need some help.
I have a worksheet with User forms. I have code that launches and locates my first user form when I double click within a range of cells. I would like to add a second range that will launch the second user form
my Code
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Application.Intersect(Target, Range("B6:B206")) Is Nothing Then
Cancel = True
With DIMENSION_TYPES_LIST
.StartUpPosition = 0
.Left = Application.Left + (0.5 * Application.Width) - (0.5 * .Width) - 500
.Top = Application.Top + (0.5 * Application.Height) - (0.5 * .Height)
.Show
End With
End If
End Sub
My second range is c6 to c206 and the form name is frmdimensionbuilder
Thanks
Steve
Bookmarks