Hi Majosum, thanks for your response. Unf I didn't get it working yet, I must be doing something wrong.
With the current code it copies the named range data from sheet DailyEnq and pastes it at sheet DailyEmail at Cell H5. Row 4 is where my visible header data is, and below that are quite a lot of hidden rows. Still left with the question on how to get the code to paste to next visible row (in H column), below the visible header row (row 4)?
For ease of reference I copied the code below. Any suggestions? Much appreciated..
Sub Copy_Daily_Enqs()
Dim SourceRange As Range, DestRange As Range
Dim DestSheet As Worksheet
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
'fill in the Source Sheet and range
Set SourceRange = Sheets("DailyEnq").Range("DAILY_ENQ_RANGE3")
'Fill in the destination sheet
Set DestSheet = Sheets("DailyEmail")
'Copy the source range
SourceRange.Copy
'Create a destination cell
Set DestRange = DestSheet.Range("H4")
ActiveCell.Offset(1, 0).Select
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
'Use PasteSpecial to paste in the destination cell
DestRange.PasteSpecial _
Paste:=xlPasteValues, _
operation:=xlPasteSpecialOperationNone, _
skipblanks:=False, _
Transpose:=False
Application.CutCopyMode = False
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub
Bookmarks