Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Avoid Printing Blank Rows

Hi All,

How do i avoid printing blank rows in a Selected Range of cells using
VBScript.

Thank you,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to Avoid Printing Blank Rows

Dim rng as range
On error resume Next
set rng = Selection.Specialcells(xlBlanks)
On error goto 0
if not rng is nothing then rng.EntireRow.Hidden = True
Selection.Printout
if not rng is nothing then rng.EntireRow.Hidden = False

--
Regards,
Tom Ogilvy


Yogesh wrote in message
...
Hi All,

How do i avoid printing blank rows in a Selected Range of cells using
VBScript.

Thank you,




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid Printing the Combo Box with the Chart [email protected] Charts and Charting in Excel 2 July 17th 06 02:30 PM
how can avoid considering of blank cells in IF function Lika Excel Worksheet Functions 1 June 12th 06 10:27 AM
Pivot Tables & not printing blank rows (revisited) [email protected] Excel Discussion (Misc queries) 1 August 4th 05 07:42 AM
Pivot Tables & not printing blank rows (revisited) [email protected] Excel Worksheet Functions 1 August 4th 05 07:42 AM
How can I avoid a BLANK cell being interpreted as a ZERO? matt Excel Programming 4 October 26th 03 08:02 PM


All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"