can you help me with this macro
I pick data from sheet 1 and send it to sheet3
If I have blank rows in sheet 1 I dont want them in sheet3
Thanks in advance
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 27/8/2002 by mb
'
'Sub CopySheet1ToSheet3()
Dim wbBook As Workbook
Dim wsSheet1 As Worksheet, wsSheet3 As Worksheet
Dim rnSource As Range, rnTarget As Range
Set wbBook = ThisWorkbook
Set wsSheet1 = wbBook.Worksheets("Sheet1")
Set wsSheet3 = wbBook.Worksheets("Sheet3")
With wsSheet1
Set rnSource = .Range("A1:h20")
End With
With wsSheet3
Set rnTarget = .Range("A65536").End(xlUp).Offset(1, 0)
End With
rnSource.Copy rnTarget
End Sub
I pick data from sheet 1 and send it to sheet3
If I have blank rows in sheet 1 I dont want them in sheet3
Thanks in advance
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 27/8/2002 by mb
'
'Sub CopySheet1ToSheet3()
Dim wbBook As Workbook
Dim wsSheet1 As Worksheet, wsSheet3 As Worksheet
Dim rnSource As Range, rnTarget As Range
Set wbBook = ThisWorkbook
Set wsSheet1 = wbBook.Worksheets("Sheet1")
Set wsSheet3 = wbBook.Worksheets("Sheet3")
With wsSheet1
Set rnSource = .Range("A1:h20")
End With
With wsSheet3
Set rnTarget = .Range("A65536").End(xlUp).Offset(1, 0)
End With
rnSource.Copy rnTarget
End Sub