Hi there,
I have the below, which is part of a longer VBA string.
I am wanting to paste values onto Sheets(MyCell.Value).Range("A6") but can't seem to figure it out...any help much appreciated!
I have the below, which is part of a longer VBA string.
I am wanting to paste values onto Sheets(MyCell.Value).Range("A6") but can't seem to figure it out...any help much appreciated!
VBA Code:
With Sheets("Data").Range("B1:B" & Sheets("Data").Range("B" & Rows.Count).End(xlUp).Row)
.AutoFilter 1, MyCell.Value
On Error Resume Next
.Offset(0).Resize(.Rows.Count - 0, 13).SpecialCells(12).Copy Sheets(MyCell.Value).Range("A6")
On Error GoTo 0
.AutoFilter
End With