+ Reply to Thread
Results 1 to 2 of 2

Macro checking if specific cell is empty every 5 rows, if so- set print area.

  1. #1
    Registered User
    Join Date
    02-15-2020
    Location
    Warsaw
    MS-Off Ver
    2007
    Posts
    4

    Macro checking if specific cell is empty every 5 rows, if so- set print area.

    My dear programmers,

    I 've got a worksheet.
    1000 empty labels, one beneath other.
    The height of one label counts 5 rows.
    My macro fills them with data, so every first cell in a label has the date in it.
    (A1=time
    4 rows of data
    A6=time
    ...
    A11=time
    ...
    A16=time
    ...
    A21=time
    ...
    etc.)

    My request is a macro that checks every first cell from a label. If it finds first empty it stops checking and set the print area from A1 to last first cell with the time in it- but column E + 4 rows.

    Could you make it? I barely understand how to create a function my own but i can read and understand them.
    Search and tried plenty of methods, but i can't figure out the right one. Hoping for Your advice.
    I really appreciate Your time. Thanks.
    Last edited by karajakatak; 03-26-2020 at 04:19 PM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Macro checking if specific cell is empty every 5 rows, if so- set print area.

    Hi there,

    See if the following code does what you need:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

+ 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] Dynamic print area with empty cells
    By kinakin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-02-2019, 11:32 AM
  2. Macro To Set Print area to a max of 50 (plus Header rows) on filtered information
    By meabrams in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-07-2015, 04:01 PM
  3. [SOLVED] Print area and empty rows
    By MATT.B in forum Excel General
    Replies: 7
    Last Post: 09-22-2014, 08:01 AM
  4. Replies: 0
    Last Post: 05-18-2012, 06:59 AM
  5. Deleting empty rows if specific cell in row is empty
    By csynic in forum Excel General
    Replies: 0
    Last Post: 07-06-2011, 01:43 AM
  6. Set Print Area Macro - Exclude Blank Rows
    By shudder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2009, 10:31 PM
  7. Resolved >>> Checking Cells are empty before print macro
    By geff in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-25-2007, 06:33 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