Consulting

Results 1 to 3 of 3

Thread: Inserting Rows during Worksheet_Change Event

  1. #1
    VBAX Mentor jammer6_9's Avatar
    Joined
    Apr 2007
    Location
    Saudi Arabia
    Posts
    318
    Location

    Inserting Rows during Worksheet_Change Event

    How can I insert rows when target range visible = true

    Scenario is:
    1. If range "B12" is visible then
    2. Insert 3 rows after B12
    3. Else
    4. Do Nothing
    T-ogether
    E-veryone
    A-chieves
    M-ore


    One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    That would have the result of adding 3 rows...every time Range B12 is made visable. So you could wind up with a lot of added rows.....
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    If range B12 is hidden then surely row 12 or column B is hidden...true?
    If it is row 12 why not just have 3 blank rows below it and hide/show them at the same time?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

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