Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tg tg is offline
external usenet poster
 
Posts: 58
Default autoresize of cells (height)

Hello,

I am trying "hide" a given amount of cells, for example I would like to
"hide" cells C5,D5,E5..etc.. if there is nothing in them. Lets say that I
have something like: =if(C1="X","hello","") and lets assume that this if
statement is in C5. Now if i wrote the if statement correctly.. if C1 has an
x then C5 will show "hello" but if it is empty then it will show nothing and
i want this whole row to be given a minimal height so they "hide". I
presently have a macro that will hide the rows if there is nothing in them
and then show them up again once there is something in them, the problem is
that it takes a large amount of time for the worksheet to update.

do you guys have any suggestions?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default autoresize of cells (height)

Why dont you try hiding this rather resizing

Rows("2:2").EntireRow.Hidden = True

--
If this post helps click Yes
---------------
Jacob Skaria


"TG" wrote:

Hello,

I am trying "hide" a given amount of cells, for example I would like to
"hide" cells C5,D5,E5..etc.. if there is nothing in them. Lets say that I
have something like: =if(C1="X","hello","") and lets assume that this if
statement is in C5. Now if i wrote the if statement correctly.. if C1 has an
x then C5 will show "hello" but if it is empty then it will show nothing and
i want this whole row to be given a minimal height so they "hide". I
presently have a macro that will hide the rows if there is nothing in them
and then show them up again once there is something in them, the problem is
that it takes a large amount of time for the worksheet to update.

do you guys have any suggestions?

Thanks in advance.

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
Cells with different height on a row and hiding certain cells MadHenry Excel Discussion (Misc queries) 3 July 13th 07 09:14 PM
Auto row height for merged cells RealmSteel[_2_] Excel Programming 1 December 11th 06 08:47 PM
set height of individual cells donbowyer Excel Worksheet Functions 3 May 27th 06 03:11 PM
Row height and Merged Cells Darin Kramer[_3_] Excel Programming 3 February 28th 05 04:23 PM
Row Height for merged cells Kaval Excel Programming 1 July 12th 04 04:26 AM


All times are GMT +1. The time now is 08:51 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"