+ Reply to Thread
Results 1 to 1 of 1

Copy only unhidden cells within range

  1. #1
    Registered User
    Join Date
    11-20-2010
    Location
    Delaware, USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Copy only unhidden cells within range

    Hi All,

    I have a script to copy rows in a range and paste them into a body of an e-mail. This works as a Sub and a Function. The problem I am having is I only want to copy the rows that are visible, not the entire range.

    My code looks like this

    Set rng = ActiveSheet.Range("C6:W130").SpecialCells(xlCellTypeVisible)
    This code actually copies nothing... If I remove the "SpecialCells(xlCellTypeVisible)", it will copy the entire range.

    Any advice?


    I solved this myself. Mods, please delete if possible.
    Last edited by Pergo; 04-03-2011 at 02:30 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1