I have some code for coping data from two worksheets and pasting into another. There will be times when one of the worksheets may not have any data. Is there an IF statement that I can use to skip the procedure of copying from a blank worksheet?
The next part of my problem is, if the "Job_Surplus" worksheet is blank, when the code gets to the part in the "Kits" that is bold and underlined, the code takes the active cell to the very end of the "Text" worksheet and then fails.
Here is what I have so far and either of the worksheets could be blank on any given day.
'Copies data for Job Surplus
Sheets("Job_Surplus").Select
Range("A2:J2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Text").Select
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'Copies data for Kit Orders
Sheets("Kits").Select
Range("A2:J2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Text").Select
Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False