+ Reply to Thread
Results 1 to 5 of 5

Macro to add additional new rows based on number in a call

  1. #1
    Registered User
    Join Date
    06-03-2014
    Posts
    2

    Macro to add additional new rows based on number in a call

    Hi all

    I am hoping someone may be able to help me create a macro that will insert a certain number of blank rows to my spread sheet. The number of rows is determined by the #of tasks calculated for that day and is in column B. For example if in column A the date is 01-07-14 and in column B it has 7, I would like 7 rows inserted with the date in column A to remain the same in all 7 rows. Ideally I would like to use this macro for every row, so if the next row down has 02-07-14 and 6, I would like it to add 6 new rows with the same date.

    I have attached a copy of the spread sheet for reference.

    I hope this makes sense as I am new to this!!

    Macro help.xlsm

  2. #2
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Macro to add additional new rows based on number in a call

    hi Courto,

    does this macro do what you want?
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to add additional new rows based on number in a call

    FWIW:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-03-2014
    Posts
    2

    Re: Macro to add additional new rows based on number in a call

    Hi Kalak - Thank you very much for your response, unfortunately I couldn't get your macro to work but thank you for your response.

    Hi John - Thank you very much for your response, the macro works exactly how I needed it to. Thank you

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to add additional new rows based on number in a call

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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. [SOLVED] Excel VBA/Macro - Copy Number of Rows based on the number in a cell to another sheet
    By diane.alexander58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 11:32 AM
  2. make db call to pull one additional column
    By chitownoz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2007, 05:28 PM
  3. Editing a macro to print additional rows
    By cjv359 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2007, 09:49 AM
  4. Macro to expand formulas to additional rows
    By Sharon P in forum Excel General
    Replies: 1
    Last Post: 01-04-2006, 10:10 AM
  5. Adding additional rows in VBA based on character strings
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2005, 03: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