Results 1 to 15 of 15

Using VBA to populate cells based on a criteria in another tab

Threaded View

  1. #1
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Using VBA to populate cells based on a criteria in another tab

    Hi, I really want to learn VBA and its many uses in excel, but I'm more of a hands on learner. I have a simple project I'm trying to do for work that I know is possible through VBA, but I don't have the expertise to do it.

    Essentially we have a master list of property managers (PM) addresses and owners etc... in a tab called "Property List" and tabs for each of the property managers in the same file. I would like to populate the individual PM's tabs with their properties based on a search/copy/paste of the "Property List" tab

    Row 1 contains the headers ... there are 10 columns of information
    Row 2 begins the data
    Column 1 contiains the property manager Initial (the search criteria)

    I've tried this code but get a runtime error object required
    Sub copyrows()
         
        Dim tfCol As Range, Cell As Object
         
        Set tfCol = Range("A:A") 'Substitute with the range which includes your True/False values
         
        For Each Cell In tfCol
             
            If IsEmpty(Cell) Then
                Exit Sub
            End If
             
            If Cell.Value = "BC" Then
                Cell.EntireRow.Copy
                Brad.Select 'Substitute with your sheet
                ActiveSheet.Range("A65536").End(xlUp).Select
                Selection.Offset(1, 0).Select
                ActiveSheet.Paste
            End If
             
        Next
         
    End Sub
    Any helpful hints or suggestions is greatly appreciated. I would really like to learn this stuff so if you have suggestions on tutorials etc... I'm open!
    Last edited by mongoose36; 07-25-2013 at 09:07 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need to learn VBA
    By MBeedle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2013, 03:12 PM
  2. Here to learn!
    By bigac in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-07-2012, 12:39 PM
  3. How to Learn VBA?
    By melleniam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2008, 09:55 AM
  4. To learn about VBA
    By Morrigan in forum Excel General
    Replies: 3
    Last Post: 08-09-2005, 09:33 AM
  5. How to learn VBA
    By Thrava in forum Excel General
    Replies: 3
    Last Post: 01-07-2005, 09:06 PM

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