Thank you very much! That code compiled perfectly.
If anyone has the same problem and I made some small changes as shown below. First, the fields I needed to extract from changed slightly and I needed operations for transposing a couple of the paste operations to fit them on a single row, and then set all of the operations to paste cell values only. Thanks again Bob Phillips!
Sub Macro3()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = Workbooks.Open(Filename:= _
"C:\Documents and Settings\mjewell\My Documents\TestTargetSheet.xlsx")
Set ws = wb.Worksheets(1)
With ws
nextrow = .Cells(.Rows.Count, "A").End(xlUp).Row + 1
End With
With Workbooks("TestSourceSheet.xlsm").ActiveSheet
.Range("B7").Copy
ws.Cells(nextrow, "A").PasteSpecial Paste:=xlPasteValues
.Range("B9").Copy
ws.Cells(nextrow, "B").PasteSpecial Paste:=xlPasteValues
.Range("B11").Copy
ws.Cells(nextrow, "C").PasteSpecial Paste:=xlPasteValues
.Range("B13").Copy
ws.Cells(nextrow, "D").PasteSpecial Paste:=xlPasteValues
.Range("E7").Copy
ws.Cells(nextrow, "E").PasteSpecial Paste:=xlPasteValues
.Range("E9").Copy
ws.Cells(nextrow, "F").PasteSpecial Paste:=xlPasteValues
.Range("E11").Copy
ws.Cells(nextrow, "G").PasteSpecial Paste:=xlPasteValues
.Range("E13").Copy
ws.Cells(nextrow, "H").PasteSpecial Paste:=xlPasteValues
.Range("F18").Copy
ws.Cells(nextrow, "I").PasteSpecial Paste:=xlPasteValues
.Range("F20:F22").Copy
ws.Cells(nextrow, "J").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
.Range("F24:F30").Copy
ws.Cells(nextrow, "M").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
.Range("F32:F33").Copy
ws.Cells(nextrow, "T").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
.Range("I7:J13").Copy
ws.Cells(nextrow, "V").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End With
wb.Save
wb.Close
Set ws = Nothing
Set wb = Nothing
End Sub
Bookmarks