This should just be a simple problem, I've been taking the advice of several helpful people on this board but this code is still bothering me. Its a simple problem:
Dim wborignal As Workbook
Dim wbOut As Workbook
Set wboriginal = ActiveWorkbook
Workbooks.Add
Set wbOut = ActiveWorkbook
wboriginal.Range("A2", Cells(CurrentOutput, 21)).Copy
With wbOut.ActiveSheet
.Cells(2, 1).PasteSpecial Paste:=xlPasteValues
.Range("a1").Value = 8007706
End WIth
THe line that tries to copy is what is not working. Everything else should work fine. What am I missing here?
Dim wborignal As Workbook
Dim wbOut As Workbook
Set wboriginal = ActiveWorkbook
Workbooks.Add
Set wbOut = ActiveWorkbook
wboriginal.Range("A2", Cells(CurrentOutput, 21)).Copy
With wbOut.ActiveSheet
.Cells(2, 1).PasteSpecial Paste:=xlPasteValues
.Range("a1").Value = 8007706
End WIth
THe line that tries to copy is what is not working. Everything else should work fine. What am I missing here?