Hello,
I've got the following code below that works like a dream if the ComboBox Text is 01, but if it's anything else it won't work.
Please help!
msheet = ActiveSheet.Name
Select Case msheet
Case "BoQ"
x = 0
For i = 1 To Range("s65536".End(xlUp).Row
If Range("s" & i).Text = ComboBox1.Text Then
If x < 1 Then
rgSel = "B" & i & "" & i
Else
rgSel = rgSel & ",B" & i & "" & i
End If
x = x + 1
Else
End If
Next i
Range(rgSel).Select
Selection.Copy
Case Else
MsgBox "Please Select BoQ To Select Information!"
End Select
End Sub
Thanks, Andrew
I've got the following code below that works like a dream if the ComboBox Text is 01, but if it's anything else it won't work.
Please help!
msheet = ActiveSheet.Name
Select Case msheet
Case "BoQ"
x = 0
For i = 1 To Range("s65536".End(xlUp).Row
If Range("s" & i).Text = ComboBox1.Text Then
If x < 1 Then
rgSel = "B" & i & "" & i
Else
rgSel = rgSel & ",B" & i & "" & i
End If
x = x + 1
Else
End If
Next i
Range(rgSel).Select
Selection.Copy
Case Else
MsgBox "Please Select BoQ To Select Information!"
End Select
End Sub
Thanks, Andrew