Results 1 to 12 of 12

Select and copy n number of rows from Filtered Table

Threaded View

Swindo Select and copy n number of... 10-20-2013, 10:49 PM
:) Sixthsense :) Re: Select and copy n number... 10-21-2013, 12:27 AM
Swindo Re: Select and copy n number... 10-21-2013, 12:42 AM
humdingaling Re: Select and copy n number... 10-21-2013, 12:47 AM
:) Sixthsense :) Re: Select and copy n number... 10-21-2013, 12:54 AM
Swindo Re: Select and copy n number... 10-23-2013, 01:47 AM
humdingaling Re: Select and copy n number... 10-23-2013, 07:15 PM
Swindo Re: Select and copy n number... 10-24-2013, 06:39 PM
humdingaling Re: Select and copy n number... 10-24-2013, 08:57 PM
Swindo Re: Select and copy n number... 10-24-2013, 09:00 PM
humdingaling Re: Select and copy n number... 10-24-2013, 09:30 PM
humdingaling Re: Select and copy n number... 10-24-2013, 09:25 PM
  1. #1
    Registered User
    Join Date
    10-20-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Select and copy n number of rows from Filtered Table

    Hi,

    I have developed a macro that copies a specific number of rows from a table based on cell H5. However now that I have filtered the table it does not copy the visiable rows but looks at the complete table. How can I change my code below to accomodate this??


    Sub Liness()
    
    Dim Copyrange As String
    Dim LastRow As Range
    
    Startrow = 7
    Let Copyrange = "B" & Startrow & ":" & "H" & Range("H5")
    Range(Copyrange).Select
    Selection.Copy
    Sheets("Output").Select
    Range("B8").Select
    ActiveSheet.Paste
    Range("A1").Select
    End Sub
    Last edited by Swindo; 10-21-2013 at 12:40 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro command to select filtered rows only
    By Gandalf21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-19-2013, 11:31 AM
  2. [SOLVED] Macro to select visible rows containg data in filtered list
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-15-2013, 01:22 PM
  3. Macro to select a specific column of filtered data in a table
    By mgrothendick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2012, 06:01 PM
  4. Replies: 4
    Last Post: 08-16-2012, 06:20 PM
  5. Using VBA to autofilter and paste over results - can't select only filtered rows.
    By Cornwell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2010, 11:33 AM

Tags for this Thread

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