The following copies data from one workbook to another
Sub CopyData()
'
' CopyData Macro
' Macro recorded and edited 22/01/2003 by ARennie
'
Workbooks.Open Filename:="O:\Accounts 02\TB Test.xls"
Range("A11:B11"
.Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("A10"
.Select
Windows("Annual Accounts Matrix.xls"
.Activate
Sheets("ImportedTB"
.Select
Range("A1"
.Select
ActiveSheet.Paste
Range("A1"
.Select
Windows("TB Test.xls"
.Activate
ActiveWorkbook.Close
End Sub
At the ActiveWorkbook.Close line, I get a warning that the clipboard is full and do I wish to clear it or retain the data. I want to by pass this message and not retain the data. How do I do this?
Sub CopyData()
'
' CopyData Macro
' Macro recorded and edited 22/01/2003 by ARennie
'
Workbooks.Open Filename:="O:\Accounts 02\TB Test.xls"
Range("A11:B11"

Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("A10"

Windows("Annual Accounts Matrix.xls"

Sheets("ImportedTB"

Range("A1"

ActiveSheet.Paste
Range("A1"

Windows("TB Test.xls"

ActiveWorkbook.Close
End Sub
At the ActiveWorkbook.Close line, I get a warning that the clipboard is full and do I wish to clear it or retain the data. I want to by pass this message and not retain the data. How do I do this?