Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 148
Default Hide Selected Cells

Please help me on how to hide specific cells when printing.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Hide Selected Cells

You can only hide entire rows or entire columns or both - but you can't hide
an individual cell.

Assume you want to hide all rows in column A that are blank

rows.Hidden = False
On error Resume Next
set rng = columns(1).specialCells(xlBlanks)
On Error goto 0
if not rng is nothing then
rng.EntireRow.Hidden = True
End if
Activesheet.Printout
rows.Hidden = False

--
Regards,
Tom Ogilvy


"Heather" wrote:

Please help me on how to hide specific cells when printing.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Hide Selected Cells

You cannot hide specific cells. You can hide rows/columns or change font to
white for selected cells.

--
Don Guillett
SalesAid Software

"Heather" wrote in message
...
Please help me on how to hide specific cells when printing.

Thanks!



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
Hide Selected Objects Clara Excel Worksheet Functions 4 June 28th 09 06:00 AM
Multiple cells or columns are selected instead of selected cell or Mikey Excel Discussion (Misc queries) 1 April 29th 09 09:48 PM
Create a "cell button" to hide selected cells. Shoolin Patel Excel Worksheet Functions 12 July 30th 07 11:00 AM
Hide the selected range highlighter [email protected] Excel Programming 2 February 6th 06 01:41 AM
Macro to take selected cells times a selected cell Craig Excel Programming 4 October 24th 05 12:54 AM


All times are GMT +1. The time now is 07:35 AM.

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

About Us

"It's about Microsoft Excel"