Please forgive my ignorance, but I'm new to VBA and I've exhausted search efforts for an answer
I'm trying to "export" data from Sheet1 to Sheet2 based on the count of cells from Sheet2. Paste will be in next available row, in the columns right next to existing data. Below is my code, but I'm really just referencing the second half here since the first half works. I'm getting an error on this code, and I'm sure it's because I just made something up from all the random research I did trying to build an applicable code.
The end goal is to take data from the first set of code, copy / paste-transpose into new sheet. Then take the data from adjacent cells and copy / paste them to match with the number of cells transposed in first step.
I hope I'm making sense.
Sub Row_10()
'
' Row_10 Macro
'
'Copy and transpose treatment data
Range("G9:N9,G11:N11").Select
Range("G11").Activate
Selection.Copy
Sheets("Billing Form").Select
Range("D" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
Application.CutCopyMode = False
' Then copy Location and Wellmaster based on count of cells
Sheets("Wednesday Filmplus").Range("D11:E11", Sheets("Billing Form").Range("D" & Rows.Count).End(xlUp)).Copy
Sheets("Billing Form").Select
Range("B" & Rows.Count).End(xlUp).Offset(1).Select
Selection.Paste
Application.CutCopyMode = False
I'm trying to "export" data from Sheet1 to Sheet2 based on the count of cells from Sheet2. Paste will be in next available row, in the columns right next to existing data. Below is my code, but I'm really just referencing the second half here since the first half works. I'm getting an error on this code, and I'm sure it's because I just made something up from all the random research I did trying to build an applicable code.
The end goal is to take data from the first set of code, copy / paste-transpose into new sheet. Then take the data from adjacent cells and copy / paste them to match with the number of cells transposed in first step.
I hope I'm making sense.
Sub Row_10()
'
' Row_10 Macro
'
'Copy and transpose treatment data
Range("G9:N9,G11:N11").Select
Range("G11").Activate
Selection.Copy
Sheets("Billing Form").Select
Range("D" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
Application.CutCopyMode = False
' Then copy Location and Wellmaster based on count of cells
Sheets("Wednesday Filmplus").Range("D11:E11", Sheets("Billing Form").Range("D" & Rows.Count).End(xlUp)).Copy
Sheets("Billing Form").Select
Range("B" & Rows.Count).End(xlUp).Offset(1).Select
Selection.Paste
Application.CutCopyMode = False