Results 1 to 10 of 10

Thread: How to populate all the rows in one column based on one cell value

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    12
    I did it 'my way':

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Address = "$E$1" Then Cells(1).CurrentRegion.AutoFilter 2, Target
    End Sub
    or unnecessarily complicated

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Address = "$E$1" Then 
          with Cells(1).CurrentRegion
             .AutoFilter 2, Target
             .resize(,1).copy cells(1,5)
             .autofilter
          end with
       end if
    End Sub
    Last edited by snb; 01-26-2017 at 04:58 PM.

Similar Threads

  1. populate default values in cell of a csv file
    By dhivya.enjoy in forum Excel Help
    Replies: 2
    Last Post: 10-23-2013, 12:59 PM
  2. Insert blank rows based on cell value
    By muhammad susanto in forum Excel Help
    Replies: 13
    Last Post: 09-11-2013, 06:18 AM
  3. VBA To Delete Rows Based On Value Criteria In A Column
    By jffryjsphbyn in forum Excel Help
    Replies: 1
    Last Post: 08-15-2013, 12:45 PM
  4. Replies: 2
    Last Post: 04-10-2013, 12:40 AM

Posting Permissions

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