Hi all,
Need some help in tweaking the below codes.
Currently it is only copying the values from my "Data Source" sheeet.
Can you help me modify it so that it copies the formatting as well?
Sub Selection()
Application.ScreenUpdating = False
Dim cRng As Range, St As String, Cl As Range, Rng As Range
With Sheets("By Site")
St = .Range("VV8").Value
Range("B32:P69").ClearContents
Set cRng = Sheets("Data Source").Rows("160:160").SpecialCells(xlCellTypeConstants)
For Each Cl In cRng
If Cl = St Then
Set Rng = Cl.Offset(, 2).CurrentRegion
Rng.Offset(3).Resize(Rng.Rows.Count - 3).Copy
.Range("B32").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End If
Next Cl
End With
End Sub
I tried the below but no dice.
.Range("B32").PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
, SkipBlanks:=False, Transpose:=False
Thank you in advance.
Bookmarks