nidenikolev
New Member
- Joined
- Jun 6, 2018
- Messages
- 20
I have two 'with' statements that select first visible cell and it's not selecting visible cells in column in order to copy+pastevalue.
I just want it to: select first visible cell in column AR=>select down to last visible cell in AR=>copy=>pastevalues
I used this exact structure for RC[-1] formula implementation,but instead of putting in ...(xlCellTypeVisible).R1C1Formula I need to add something like .Copy
Why isn't this copying, isn't it the same logic?
Can anyone help?
Code:
I just want it to: select first visible cell in column AR=>select down to last visible cell in AR=>copy=>pastevalues
I used this exact structure for RC[-1] formula implementation,but instead of putting in ...(xlCellTypeVisible).R1C1Formula I need to add something like .Copy
Why isn't this copying, isn't it the same logic?
Can anyone help?
Code:
Code:
With ActiveSheet.Range("AR2").CurrentRegion
.AutoFilter Field:=5, Criteria1:="<>"
End With
With .Columns(44)
.Offset(1).SpecialCells(xlCellTypeVisible).Copy
.PasteSpecial xlPasteValues
End With
Last edited: