M
maperalia
I have a program that open an excel file from select cell by asking the work
order number (see below). What statement do I need to get a window message
when I type the wrong work order number?.
Thanks in advance.
Maperalia
Sub Open_xls_File()
WO = Application.InputBox("Enter Work Order Number")
directory = "C:\Test\Colors\" & WO & "\"
filetext = Selection.Value
Workbooks.Open directory & filetext
End Sub
order number (see below). What statement do I need to get a window message
when I type the wrong work order number?.
Thanks in advance.
Maperalia
Sub Open_xls_File()
WO = Application.InputBox("Enter Work Order Number")
directory = "C:\Test\Colors\" & WO & "\"
filetext = Selection.Value
Workbooks.Open directory & filetext
End Sub