+ Reply to Thread
Results 1 to 4 of 4

Insert x rows when cell value changed.

  1. #1
    Registered User
    Join Date
    03-14-2024
    Location
    Edinburgh
    MS-Off Ver
    o365
    Posts
    5

    Insert x rows when cell value changed.

    I have had a read through what i could find using the search function and couldnt come up with anything suitable for what im trying to do.

    When cell H14 has a numerical value entered, i want the to insert a number of rows based upon H14 value starting at row 18 and autofill some cells with formulas & data.

    Sheet attached to demonstrate.CER Test Sheet.xlsx
    Last edited by stuart3h; 04-09-2024 at 10:15 AM.

  2. #2
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,380

    Re: Insert x rows when cell value changed.

    Place this in the Sheet Module...
    Code runs after entering value in H14...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,641

    Re: Insert x rows when cell value changed.

    Try the attached.
    Attached Files Attached Files
    Last edited by jindon; 04-09-2024 at 11:52 AM.

  4. #4
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,380

    Re: Insert x rows when cell value changed.

    Oops...seeing jindon's response, I might have misunderstood...
    I assumed adding the x number rows to already existing...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 10-28-2017, 10:51 AM
  2. Replies: 7
    Last Post: 10-14-2016, 05:33 PM
  3. Replies: 2
    Last Post: 09-11-2016, 12:39 PM
  4. Replies: 1
    Last Post: 09-11-2016, 12:39 PM
  5. [SOLVED] Excel 2007 : Insert DATE if any Cell in Row changed
    By varocketry in forum Excel General
    Replies: 4
    Last Post: 12-03-2012, 06:30 PM
  6. Insert Formula if cell is changed from blank
    By buffalotom99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2009, 07:54 AM
  7. Insert date when adjacent cell changed
    By speakers_86 in forum Excel General
    Replies: 0
    Last Post: 10-02-2006, 02:54 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