ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,738
- Office Version
- 2007
- Platform
- Windows
Hi,
I am currently using the following code supplied.
It works fine as it should but i have noticed that if the cell B13 has no value the macro still runs.
Please can you advise an edit to add to the supplied code so not only must cell B13 be active BUT it must also contain a value
I am currently using the following code supplied.
It works fine as it should but i have noticed that if the cell B13 has no value the macro still runs.
Please can you advise an edit to add to the supplied code so not only must cell B13 be active BUT it must also contain a value
Code:
Sub HondaEpcNumber_Click() If ActiveCell.Address(0, 0) = "B13" Then
HondaParts.MyPartNumber.Value = ActiveCell.Value
HondaParts.Show
Else
MsgBox "You didn`t enter a Honda Part Number In Cell B13", vbExclamation, "Honda Number - My Number Look Up"
End If
End Sub