Hey Guys, can anyone see what is wrong with the following code:
Error: Method 'Range' of object' _Global failed
Run-time error '1004'
Many thanks in advance
Code:
With Worksheets(strSource)
.Visible = True
lngCounterC = Worksheets("REFERENCE").Range("L:L").Cells.SpecialCells(xlCellTypeConstants).Count
lngCounterC = lngCounterC - 1
Sheets("Reference").Select
Range("S8").Copy
Range("'P7:P' & lngCounterc & ").Select
Selection.Paste
Worksheets(strSource).Visible = xlSheetVeryHidden
End With
Error: Method 'Range' of object' _Global failed
Run-time error '1004'
Many thanks in advance