+ Reply to Thread
Results 1 to 5 of 5

VBA Code to align rows and remove blanks.

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    Matamoros, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    52

    Question VBA Code to align rows and remove blanks.

    Hello to all, my name is Samuel Cruz...
    Daily I generate a report that returns some rows miscontinued. For example:

    Columns "A" to "H" in row 7 begin the data, and then data continue from columns "I" to "O" in row 8. I manually move data from Columns "A" to "H" in row 7 to Columns "A" to "H" to row 8 (Columns "A" to "H" in row 7 are now blanks). Then the row 7 goes all blank and delete it from database.

    Is there a way or a VBA Code that can help me to perform the actions shown above with all the rows that contain miscontinued data. I am attaching a sample file with some miscontinued rows.

    I will appreciate the favor because I work with 6000 to 7000 rows daily and will save me a lot of time.

    Sincerally...
    Samuel Cruz.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA Code to align rows and remove blanks.

    Please try this one on a copy of your sheet.

    Please reply if it works as expected.

    Please Login or Register  to view this content.
    Last edited by oeldere; 07-16-2013 at 06:01 PM. Reason: A changed in I_to_O
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-03-2013
    Location
    Matamoros, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: VBA Code to align rows and remove blanks.

    thank you oeldere!!!
    I'll give it a try.

  4. #4
    Registered User
    Join Date
    06-03-2013
    Location
    Matamoros, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    52

    Thumbs up Re: VBA Code to align rows and remove blanks.

    Hello again oeldere!!!
    I tested the code in my today's report and it worked smoothly and perfect.
    I really appreciate the big help that you gave me.

    Normally I worked with this report for almost an hour. With your help, it took 2 minutes!!! That's amazing!!!
    Thank you very much and please enjoy your day!!!
    Best regards!!!

    Samuel Cruz.
    Matamoros, Mexico.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA Code to align rows and remove blanks.

    @SamCV

    Thanks for the reply.

    Glad I could help.

    You can add point to the rep(utation) to the members who helped you, by clicking on the star.

+ 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] Insert and Delete blanks rows so that there are 2 blanks rows between text rows
    By erniedawg in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-29-2013, 02:27 AM
  2. Align alike cells in different columns and add blanks where necessary
    By EllyKRae in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2013, 03:25 PM
  3. Copy Rows - Paste and remove blanks
    By tigerdel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2012, 01:28 PM
  4. Modify VBA code to hide blanks rows
    By Ranew in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2011, 09:33 AM
  5. Help speed up code to remove rows with 0 value
    By RandiLee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2010, 11:46 AM

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