View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Damian Carrillo[_2_] Damian Carrillo[_2_] is offline
external usenet poster
 
Posts: 9
Default Copy only Visible Cells of a Variable Range...

Norman,

Thank you! This did the trick. There's so many secret sanity savers in
Excel's Object Model! I really appreciate your timely advice.

Damian


"Norman Jones" wrote:

Hi Damian,

Try something like:

Sub Tester()
Dim rng As Range
Dim rng1 As Range
Dim destRng As Range

Set rng = Sheets("Interview").AutoFilter.Range

Set rng1 = rng.SpecialCells(xlCellTypeVisible)

Set destRng = Sheets("Sheet2").Range("A1")

rng1.Copy
destRng.PasteSpecial , Paste:=xlValues

End Sub


---
Regards,
Norman