I have given a dyanmic range in my worksheets as
=OFFSET(Configuration!$C$2,0,0,COUNTA(Configuration!$C:$C)-1,1)
Configuration: Name of the sheet
I am starting range from 2nd row and the column is 3rd.
Problem:
Now I match value of combobox to values of Column D in the same sheet.
It it matches I delete the entire row.
Here is the code.
Dim Flag As Integer
Flag = 2
For x = 2 To 100 'As my rows will be less than 100
ThisValue = Me.ComboBox3.Value
If ThisValue = ws.Range("D" & x) Then
ws.Rows(x).Delete
End If
Next x
Problem when the match is for the Second row(my dynamic ranges starting from second row) and gets deleted than my dyanmic range becomes
=OFFSET(Configuration!#REF!,0,0,COUNTA(Configuration!$C:$C)-1,1)
Which is effecting my code.
Please help
=OFFSET(Configuration!$C$2,0,0,COUNTA(Configuration!$C:$C)-1,1)
Configuration: Name of the sheet
I am starting range from 2nd row and the column is 3rd.
Problem:
Now I match value of combobox to values of Column D in the same sheet.
It it matches I delete the entire row.
Here is the code.
Dim Flag As Integer
Flag = 2
For x = 2 To 100 'As my rows will be less than 100
ThisValue = Me.ComboBox3.Value
If ThisValue = ws.Range("D" & x) Then
ws.Rows(x).Delete
End If
Next x
Problem when the match is for the Second row(my dynamic ranges starting from second row) and gets deleted than my dyanmic range becomes
=OFFSET(Configuration!#REF!,0,0,COUNTA(Configuration!$C:$C)-1,1)
Which is effecting my code.
Please help