+ Reply to Thread
Results 1 to 2 of 2

Adding a Blank Row Every Nth Row in a Table

  1. #1
    Registered User
    Join Date
    05-02-2019
    Location
    Yangon, Myanmar
    MS-Off Ver
    2010
    Posts
    2

    Adding a Blank Row Every Nth Row in a Table

    Hello, so I'm using VBA to make accounting easier. I created a UserForm where I enter in data and it posts to a table in the sheet. I want to make it neater so I want to add a blank row after every 2 rows (whenever I press the submit button from the Userform). The 2 rows consist of double-entry accounting, and I want every 3rd row to be blank, so sort of like a loop. The trick is that I want the loop to be contained in the table. The 3rd row of the sheet is not necessarily the 3rd row in the table. I am a complete beginner in VBA and have been looking at Youtube tutorials but I haven't been able to solve this problem. Would appreciate any kind of help (even if it means you telling me that it's not possible). Thank you!

    My coding so far for the "Submit button" looks like this. The target row is set to be the last row of the table. B3:H3 are the table headers.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-02-2019
    Location
    Yangon, Myanmar
    MS-Off Ver
    2010
    Posts
    2

    Re: Adding a Blank Row Every Nth Row in a Table

    Here's an update to my formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Help with converting table fields into a new table based on cell blank or not blank
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-15-2016, 01:00 AM
  2. [SOLVED] Adding A Blank Row To A Table In Error
    By TheScott in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2015, 02:42 PM
  3. Adding blank column to Pivot Table
    By GPSPOW in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-09-2014, 04:06 PM
  4. Adding to first blank row in table
    By Janno in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2014, 07:07 AM
  5. Sorting table then adding blank rows
    By kgrula in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2011, 11:05 PM
  6. Replies: 3
    Last Post: 09-17-2008, 01:05 PM

Tags for this Thread

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