Hi there,
I am attempting to use a macro that is connected to the answers in a drop-down menu. The code I'm using is:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("$G$78")) Is Nothing Then
Select Case Range("$G$78")
Case "1 Product": Product1
Case "2 Products": Product2
Case "3 Products": Product3
End Select
End If
End Sub
The macro is set up to insert a few rows that gather information about each product, but of course this is dependent on how many products someone has. The issue I'm having is that if I select 1 Product, then go back and select 2 Products, the rows for 2 products are simply added to the bottom of the first choice. What I'm looking for is that if someone changes their selection, the new macro overrides the first. Is this possible?
Thank you for your help!
I am attempting to use a macro that is connected to the answers in a drop-down menu. The code I'm using is:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("$G$78")) Is Nothing Then
Select Case Range("$G$78")
Case "1 Product": Product1
Case "2 Products": Product2
Case "3 Products": Product3
End Select
End If
End Sub
The macro is set up to insert a few rows that gather information about each product, but of course this is dependent on how many products someone has. The issue I'm having is that if I select 1 Product, then go back and select 2 Products, the rows for 2 products are simply added to the bottom of the first choice. What I'm looking for is that if someone changes their selection, the new macro overrides the first. Is this possible?
Thank you for your help!