+ Reply to Thread
Results 1 to 4 of 4

Macro to Insert Number of Rows Defined in Adjacent Cell

  1. #1
    Registered User
    Join Date
    06-15-2021
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Question Macro to Insert Number of Rows Defined in Adjacent Cell

    Hi there,

    I am very much a beginner when it comes to macros so would appreciate any help.

    I am trying to insert a number of rows which is defined by a number in column J (starting from cell J585).

    The bit I am struggling to get around is the fact that some of the cells in column J contain the text "no rows". For these I do not want to insert any cells. i.e. I only want to insert the varying number of rows below the cells in column J that contain a number.

    Thanks in advance!

    Cheers

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Macro to Insert Number of Rows Defined in Adjacent Cell

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    06-15-2021
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Macro to Insert Number of Rows Defined in Adjacent Cell

    Legendary. Thanks so much for your quick reply.

    Appreciate it.

    Cheers

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Macro to Insert Number of Rows Defined in Adjacent Cell

    You are very welcome.

+ 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. code to insert non adjacent rows based on cell value
    By BEEROG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2021, 11:32 AM
  2. Insert User Defined Number of Rows in a Table
    By dsrt16 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2018, 01:18 PM
  3. [SOLVED] Macro to insert 'x' number of new rows based on cell value - is it possible?
    By STUARTXL in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 09-19-2016, 01:48 PM
  4. Macro to insert number of rows where cell is highlighted or pointed
    By Optimus81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2012, 11:51 AM
  5. macro: insert specified number of rows depending on referenced cell value
    By cffurillo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 11:37 AM
  6. Macro to insert and format rows at defined places according to selected category
    By Marbleking in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2011, 04:20 PM
  7. Macro- delete 2 adjacent rows, insert counta and average functions of selection
    By drudixon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2010, 11:27 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