Guest_imported
New member
- Jan 1, 1970
- 0
Hello
I have got this command working now thanks, but i want to insert a message when the find doesn't find anything.
I've tried a few things but got nowhere fast
Here it is
Private Sub CommandButton1_Click()
msheet = ActiveSheet.Name
Select Case msheet
Case "BoQ"
If Application.CutCopyMode = False Then
MsgBox "Please Select Subcontractor Rates To Paste!"
Else
Range("s:s".Select
**** Selection.Find(What:=ComboBox1.Text).Activate ****
ActiveCell.Offset(0, -11).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End If
Case Else
MsgBox "Please Select Bill Of Quantities To Enter Rates"
End Select
End Sub
Thankyou
Andrew
I have got this command working now thanks, but i want to insert a message when the find doesn't find anything.
I've tried a few things but got nowhere fast
Here it is
Private Sub CommandButton1_Click()
msheet = ActiveSheet.Name
Select Case msheet
Case "BoQ"
If Application.CutCopyMode = False Then
MsgBox "Please Select Subcontractor Rates To Paste!"
Else
Range("s:s".Select
**** Selection.Find(What:=ComboBox1.Text).Activate ****
ActiveCell.Offset(0, -11).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End If
Case Else
MsgBox "Please Select Bill Of Quantities To Enter Rates"
End Select
End Sub
Thankyou
Andrew