+ Reply to Thread
Results 1 to 5 of 5

Need to modify code to skip blank rows and headings

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    Colorado Springs, CO
    MS-Off Ver
    Excel 2010
    Posts
    55

    Need to modify code to skip blank rows and headings

    Hi,

    I need to modify this code so that it will skip the headings as well as the blank rows below the headings.

    Please Login or Register  to view this content.
    I have attached a workbook Working copy of Billing Summary.xlsmto show how the data is setup. Currently it includes the headings (Office/Outpatient, Hospital and Re-Audit) with all the data below those headings for each of the physicians, however, I need it to skip those headings and the blank rows below them and only extract actual data.

    thanks for the help

    Missit
    Last edited by JBeaucaire; 02-06-2015 at 10:37 AM. Reason: Merged threads

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Need to modify code to skip blank rows and headings

    Hi Missit,

    try if this works for you:
    Please Login or Register  to view this content.
    Best,
    Johan

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Cool Re: Need to modify code to skip blank rows and headings

    Rather than mess with your code why not just clean up the billing summary sheet.
    I wrote this sub and it tested okay. Since you have that cool button where you can repopulate the billing summary sheet you can test it out for yourself.

    Good Luck!


    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need to modify code to skip blank rows and headings

    For skipping the heading, change this line

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-13-2010
    Location
    Colorado Springs, CO
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Need to modify code to skip blank rows and headings

    Quote Originally Posted by berlan View Post
    Hi Missit,

    try if this works for you:
    Please Login or Register  to view this content.
    Best,
    Johan

    Hi, I tried sending you an answer on this, but I don't know where it went. It works fine, except that I forgot to mention that some of the pages may be blank. When that happens, the code breaks. Is there a way we can skip those pages that don't have any data in them?

    Thanks so much for all your help.

    Carole

+ 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] Need to add skip blank cells to my code
    By Garbology in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-12-2014, 03:45 AM
  2. Need help to make VBA to skip rows that are blank
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2013, 05:55 PM
  3. [SOLVED] Skip Section of Code if Filter Returns a Blank
    By tamiso2311 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 12:53 AM
  4. Skip Blank rows
    By Bmxerdude2087 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2012, 11:09 PM
  5. skip blank rows when pasting formulas
    By Newsgal in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 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