RyanScharfy
Technical User
Example (Using Excel 2003)
Sheet1 - Table1, variable rows
Sheet2 - Table2, same format, variable rows.
I want to copy Table2 directly underneat Table 1 so it is one big table (basically merge the tables)
Here's my code - less the missing piece
Sub CopyTable()
'
' CopyTable Macro
'
' Go to row 2 and highlight all data below and copy
Sheets("Sheet2").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
' Go to Sheet 1, and scroll down column A to get to the
' end of the table
Sheets("Sheet1").Select
Range("A1").Select
Selection.End(xlDown).Select
' How to do go one more cell down?
' Paste
ActiveSheet.Paste
End Sub
Sheet1 - Table1, variable rows
Sheet2 - Table2, same format, variable rows.
I want to copy Table2 directly underneat Table 1 so it is one big table (basically merge the tables)
Here's my code - less the missing piece
Sub CopyTable()
'
' CopyTable Macro
'
' Go to row 2 and highlight all data below and copy
Sheets("Sheet2").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
' Go to Sheet 1, and scroll down column A to get to the
' end of the table
Sheets("Sheet1").Select
Range("A1").Select
Selection.End(xlDown).Select
' How to do go one more cell down?
' Paste
ActiveSheet.Paste
End Sub