This is a document that someone before me created and is barely used. So yes, I could rewrite it, but I wanted to see if there was a way to make this one work.
Basically I am removing old data, refreshing the data, and pasting the new data into A4. Doing research, one person said that this error occurs because there is nothing in the clipboard, which is not correct in my case because when I close it tells me I have a lot of data on the clipboard.
It was working fine up to last week.
The error occurs after I remove the data refresh it and the want to move the new data to correct report:
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Here is the code:
Sub move_data()
'
' move_data Macro
'
'
Sheets("Table").Select
Range("A4").Select
Range(Selection, Selection.End(xlDown).Offset(-1, 0)).Select
Selection.Copy
Sheets("Call List").Select
Range("A4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Call Date").Select
Range("C20").Select
Selection.ListObject.QueryTable.Refresh BackgroundQuery:=False
Sheets("Call List").Select
Call test
End Sub