Hey guys...
I want to check if the cell clicked is in the right column... and if not, then exit sub...
This is the code:
Dim lNum As Long
On Error Resume Next
Application.DisplayAlerts = False
lNum = Application.InputBox _
(Prompt:="Ingrese la Factura que desea pagar.", _
Title:="PAGO DE FACTURAS", Type:=1)
On Error GoTo 0
Application.DisplayAlerts = True
If Intersect(ActiveCell, Range("Q:Q")) Is Nothing Or lNum = 0 Then
MsgBox "You did something wrong. Remember you have to click the Invoice Number"
Exit Sub
Else ...
Please give me a hand...
Thanks
I want to check if the cell clicked is in the right column... and if not, then exit sub...
This is the code:
Dim lNum As Long
On Error Resume Next
Application.DisplayAlerts = False
lNum = Application.InputBox _
(Prompt:="Ingrese la Factura que desea pagar.", _
Title:="PAGO DE FACTURAS", Type:=1)
On Error GoTo 0
Application.DisplayAlerts = True
If Intersect(ActiveCell, Range("Q:Q")) Is Nothing Or lNum = 0 Then
MsgBox "You did something wrong. Remember you have to click the Invoice Number"
Exit Sub
Else ...
Please give me a hand...
Thanks