+ Reply to Thread
Results 1 to 12 of 12

How Can I insert 4 rows after fixed number of rows

  1. #1
    Registered User
    Join Date
    10-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    44

    How Can I insert 4 rows after fixed number of rows

    Hi Gents,
    I have a great code for Mr. jindon to get sum value from each workbook to one ... It is working great and wonderful
    Please Login or Register  to view this content.
    I currently need help In some additions (in the same code)
    I need these additions in the following points
    1 - Insert four rows after each 27 names
    if the remain items is less than 27 then to insert rows directly after them
    I have highlighted the points where I would like to insert the rows
    2 - in the first inserted row To create the totals formulas
    3 - in the four inserted row To create the previous totals formulas
    With adjust the vertical and horizontal page breaks automatically
    I have attached an excel sheet so you can see what I am trying to achieve.
    I would be very thankful to all of you for your help.
    Attached Files Attached Files

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

    Re: How Can I insert 4 rows after fixed number of rows

    try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    44

    Re: How Can I insert 4 rows after fixed number of rows

    I am so sorry Mr. jindon for being late in reply
    it delay is due to my mother visit
    Thanks a lot for great and creative solutions
    Just a little modifications ... In fact it is difficult to describe the required but I have attached a sample workbook to illustrate the desired results and if possible to adjust the page breaks automatically
    Please see the attachment file.
    Have a nice time my Professor
    thanks again.
    Attached Files Attached Files
    Last edited by jasminjakson; 10-22-2018 at 02:56 PM.

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

    Re: How Can I insert 4 rows after fixed number of rows

    I don't like the way you ask the question asking one by one.

    Is this the last one?

  5. #5
    Registered User
    Join Date
    10-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    44

    Re: How Can I insert 4 rows after fixed number of rows

    Thanks a lot Mr. jindon for your great support all the time
    Yes Sir This will be the last
    please ... Do not forget adjust the page breaks automatically
    thanks again.

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

    Re: How Can I insert 4 rows after fixed number of rows

    You need to adjust the page set up for your self.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    44

    Re: How Can I insert 4 rows after fixed number of rows

    Thank you very much Mr. jindon for your interest in the issue
    It seems I didn't clarify well
    i want total of each column which appears in below of page 2 includes the sum which in below of the page 1 plus the values of cells from the beginning of page 2 until the last of the page and this will repeat for the other pages .
    Please have a look at the sample workbook so as to see the formulas are in rows 66 & 97
    Thank you very much! I do appreciate your time and patience.
    Attached Files Attached Files
    Last edited by jasminjakson; 10-22-2018 at 12:59 PM.

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

    Re: How Can I insert 4 rows after fixed number of rows

    Change to
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    44

    Re: How Can I insert 4 rows after fixed number of rows

    Thank you very much Mr. jindon for your interest in the issue
    Everything is okay except for last page total (Total final pages)
    I tried to modify the total range and do it myself, but it seems I'm just a beginner
    Thank you very much in advance.

  10. #10
    Registered User
    Join Date
    10-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    44

    Re: How Can I insert 4 rows after fixed number of rows

    Thank you very much Mr. jindon
    To give me the opportunity for advancement ... Modified
    I've tried to set the page breaks, but without luck
    Please help me in this point
    Thank you very much in advance.
    Last edited by jasminjakson; 10-24-2018 at 09:54 AM.

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

    Re: How Can I insert 4 rows after fixed number of rows

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    10-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    44

    Re: How Can I insert 4 rows after fixed number of rows

    Thanks a lot Mr. jindon
    I will try to do so
    Once again many many thanks for your effort!
    Best and kind regards

+ 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: 7
    Last Post: 10-14-2016, 05:33 PM
  2. Replies: 2
    Last Post: 09-11-2016, 12:40 PM
  3. Replies: 2
    Last Post: 09-11-2016, 12:39 PM
  4. Replies: 1
    Last Post: 09-11-2016, 12:39 PM
  5. Insert rows to maintain fixed page length
    By thedefense in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2016, 03:38 PM
  6. Replies: 0
    Last Post: 08-30-2010, 10:30 PM
  7. [SOLVED] Insert rows (1 to 4) if the cell value equals a fixed word.
    By Joy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2006, 09:40 AM

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