thechipper1982
New Member
- Joined
- Jun 2, 2011
- Messages
- 7
I can not figure out why I am getting this error. Any help would be great!
Here is my code:
I get the error on the very last line with my string findinvoice.
I can not even get any part of the code to work, if I try to step into it, it stops at the very top and highlights findinvoice as the problem.
Not sure what to do.
chip.
Here is my code:
Code:
Sub SaveOrder()
Sheets("ORDERS").Select
Range("A6").Select
Dim rownum As Long
Dim First As String
Dim Last As String
Dim Invoice As String
Dim MyDate As String
Dim findinvoice As String
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Select
Loop
rownum = ActiveCell.Row
Application.EnableEvents = False
On Error Resume Next
With Sheets("ORDERS")
Set findinvoice = .Range("U:U").Find(Invoice, LookIn:=xlValues, LookAt:=xlWhole)
I get the error on the very last line with my string findinvoice.
I can not even get any part of the code to work, if I try to step into it, it stops at the very top and highlights findinvoice as the problem.
Not sure what to do.
chip.