Nick,
The application.cutcopymode command appears near the bottom of the file after it has tried to copy the selected cells. See full Macro below (==> indicates mark when entering debug). I've tried recording a similar macro to do the same thing. But when I've looked at the macro the ActiveSheet.Paste command isn't in the script! When added I still get the same message as above.
Jon
Sub LoadFood()
'
' LoadFood Macro
' Macro recorded 19/05/2004 by forstdw
'
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("All Accounts").Select
Range("A1").Select
With Selection.QueryTable
.Connection = "TEXT;K:\IT\AdhocSalesReports\SR_A0001c.csv"
.TextFilePlatform = xlWindows
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = False
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = True
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(2, 2)
.Refresh BackgroundQuery:=False
End With
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Instructions").Select
'
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("All Acct Sales").Select
ActiveWindow.ScrollRow = 1
Range("A2").Select
With Selection.QueryTable
.Connection = "TEXT;K:\IT\AdhocSalesReports\SR_A0001b.csv"
.TextFilePlatform = xlWindows
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = False
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = True
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(9, 9, 2, 2)
.Refresh BackgroundQuery:=False
End With
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Range("A1:C854").Select
Selection.AutoFilter
Selection.AutoFilter Field:=3, Criteria1:="Other Foodservice"
Range("A15").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Sales 2004").Select
ActiveWindow.LargeScroll ToRight:=-4
ActiveWindow.SmallScroll Down:=-46
Range("O44").Select
==> ActiveSheet.Paste
Range("W44").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll ToRight:=12
Range("AE44").Select
ActiveSheet.Paste
Range("AM44").Select
ActiveSheet.Paste
Range("AU44").Select
ActiveSheet.Paste
Range("BC44").Select
ActiveSheet.Paste
Range("BK44").Select
ActiveSheet.Paste
Range("BS44").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll ToRight:=18
Range("CB44").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=47
ActiveWindow.LargeScroll ToRight:=-4
ActiveWindow.LargeScroll Down:=1
ActiveWindow.LargeScroll ToRight:=1
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Other Food Services Structure").Select
ActiveWindow.LargeScroll Down:=-1
Range("B9").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=38
Range("E72").Select
ActiveWindow.LargeScroll Down:=-1
Range("E9").Select
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Instructions").Select
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("All Acct Sales").Select
Range("A1").Select
Application.CutCopyMode = False
Selection.AutoFilter
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Instructions").Select
Range("B10").Select
End Sub