+ Reply to Thread
Results 1 to 3 of 3

insert row in tab 2 upon insert row in tab1 if condition matches

  1. #1
    Registered User
    Join Date
    07-15-2012
    Location
    Wilmington, DE
    MS-Off Ver
    Excel 2007
    Posts
    2

    insert row in tab 2 upon insert row in tab1 if condition matches

    Hi folks,

    I'm new to Excel macros and am trying to implement the following functionality. I have 2 tabs in my workbook.

    a. Everytime a row is inserted in tab 1, I need to check for whether column A contains string xyz. If it does copy over all the contents of the row and insert row into Tab 2.
    b.Everytime a row is deleted in tab 1. cascade the delete to tab 2 - if column a for the row contains the xyz string.

    I'm learning macros so if an expert can get me started I'll finish it.

    Thanks and appreciate your assistance!

    Victor

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: insert row in tab 2 upon insert row in tab1 if condition matches

    not clear to me. when you insert a row(new row) how can there be any entry in column A of that inserted row?
    I am not an expert. better solutions may be available
    [email protected]

  3. #3
    Registered User
    Join Date
    07-15-2012
    Location
    Wilmington, DE
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: insert row in tab 2 upon insert row in tab1 if condition matches

    to give you an example if i insert a new row into tab 1 with 1st column as victor123 i'd like that whole row be inserted to tab 2.

    if the 1st column doesnt contain "victor" --> dont cascade the insert to tab 2. hope that clarifies.

+ 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