+ Reply to Thread
Results 1 to 5 of 5

Paste Data Into A Filtered List

Hybrid View

ajb1131 Paste Data Into A Filtered... 01-05-2009, 11:56 AM
royUK Can you attach an example... 01-05-2009, 12:02 PM
ajb1131 Here is an example. ... 01-05-2009, 12:38 PM
stanleydgromjr ajb1131, This does work,... 01-05-2009, 05:38 PM
royUK Try this code Sub... 01-06-2009, 04:55 AM
  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    MN
    Posts
    5
    Here is an example.

    Thanks for your effort!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    ajb1131,

    This does work, but I am sure it can be approved upon.

    See the attached workbook "Data Filter AutoFilter copy another sheets cells to SpecialCells xlCellTypeVisible - ajb1131 - SDG.xls".

    Then run the "CopyPasteToFilter" macro.


    Have a great day,
    Stan
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try this code


    Sub CopyToFilteredRows()
        Dim rVis   As Range
        Dim cl     As Range
        Dim Rw     As Long
    
        Rw = 1
        With Sheet1
            Set rVis = .Range(.Cells(2, 1), .Cells(.Rows.Count, 1).End(xlUp)).SpecialCells(xlCellTypeVisible)
        End With
        For Each cl In rVis
            MsgBox Rw
            cl.Offset(0, 1).Value = Sheet2.Cells(Rw, 1).Value
            Rw = Rw + 1
        Next cl
    End Sub
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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