Results 1 to 1 of 1

STOP PRINTING IF CELL is BLANK E.G B2 is blank then stop printing

Threaded View

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    1

    STOP PRINTING IF CELL is BLANK E.G B2 is blank then stop printing

    PLease assist i have below code and want if one cell B2 is blank them stop printing
    Dim I As Integer
    Dim B As Integer
        Range("B5").Select
        B = ActiveCell.FormulaR1C1
        Range("C10").Select
        I = 1
        Do While I <= B
        Range("B10").Select
        ActiveCell.FormulaR1C1 = I
        Sheets("Print").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Sheets("Data Entry").Select
        I = I + 1
        Loop
        End Sub
    Last edited by arlu1201; 04-18-2014 at 03:59 AM. Reason: Use code tags.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA stop from printing if cell .....
    By robrobet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-06-2013, 07:10 PM
  2. Stop printing blank cells with formula
    By Jasson in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-30-2013, 11:39 PM
  3. How to stop a loop at a blank cell
    By sunandm00n in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2007, 11:16 AM
  4. [SOLVED] #DIV/0! how to stop this in blank cell
    By S S in forum Excel General
    Replies: 8
    Last Post: 08-13-2006, 05:50 PM
  5. Printing Problem: get the 001 to stop printing!
    By kimmyrt in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-26-2005, 05:06 PM

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