Hi All
We use 6 digit item codes and alot of our searchs etc are based on these.
Current im using the code below to search for the code and bring up a form. It picks up all entries that don't have a 0 in front of them
How can I get it to pick them up aswell?
Thanks, Keegan
Sub Editform()
Dim name As String
name = Application.InputBox( _
Prompt:="Enter Item Number", _
Title:="Item Number Look Up:", Type:=3)
Range("a4").Select
Do
If (ActiveCell) = name Then
frmEditSpec.Show
Exit Sub
Else: ActiveCell.Offset(1, 0).Select
If IsEmpty(ActiveCell) = True Then
MsgBox ("No Entry with this Item Number")
Exit Sub
End If
End If
Loop
End Sub
We use 6 digit item codes and alot of our searchs etc are based on these.
Current im using the code below to search for the code and bring up a form. It picks up all entries that don't have a 0 in front of them
How can I get it to pick them up aswell?
Thanks, Keegan
Sub Editform()
Dim name As String
name = Application.InputBox( _
Prompt:="Enter Item Number", _
Title:="Item Number Look Up:", Type:=3)
Range("a4").Select
Do
If (ActiveCell) = name Then
frmEditSpec.Show
Exit Sub
Else: ActiveCell.Offset(1, 0).Select
If IsEmpty(ActiveCell) = True Then
MsgBox ("No Entry with this Item Number")
Exit Sub
End If
End If
Loop
End Sub