Hi everyone! I am trying to learn some VBA stuff and I just couldn`t find any code that would help me with I am sure a very basic issue.
I need to take 3 columns from Sheet 1, paste it in Info Sheet starting at A1 and it will fill 3 columns to C.
Then I need to grab info from Sheet2 and paste in in the row A-C in the first open row.
Then I want it to become a table. I am just not sure how to connect all of this.
I would be very happy if someone could help. Thank you!
Sub OneCell()
Sheets("Sheet1").Select
Range("B:B, E:E, A:A").Copy
Sheets("Info").Select
Range("A:A").Select
ActiveSheet.Paste
Sheets("Sheet2").Select
Range("K:K, I:I, A:A").Copy
Sheets("Info").Select
Range("A:A").Select
ActiveSheet.Paste
Sub sbCreatTable()
'Create Table in Excel VBA
Sheet1.ListObjects.Add(xlSrcRange, Range("A1:D10"), , xlYes).Name = "myTable1"
End Sub
I need to take 3 columns from Sheet 1, paste it in Info Sheet starting at A1 and it will fill 3 columns to C.
Then I need to grab info from Sheet2 and paste in in the row A-C in the first open row.
Then I want it to become a table. I am just not sure how to connect all of this.
I would be very happy if someone could help. Thank you!
Sub OneCell()
Sheets("Sheet1").Select
Range("B:B, E:E, A:A").Copy
Sheets("Info").Select
Range("A:A").Select
ActiveSheet.Paste
Sheets("Sheet2").Select
Range("K:K, I:I, A:A").Copy
Sheets("Info").Select
Range("A:A").Select
ActiveSheet.Paste
Sub sbCreatTable()
'Create Table in Excel VBA
Sheet1.ListObjects.Add(xlSrcRange, Range("A1:D10"), , xlYes).Name = "myTable1"
End Sub