Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Test for value and set row height

I would like to test for a value in a cell (i.e. cell C3 0) and if true
then set the row height to 0 then move the curser down one cell and run the
test again. I also need the code to run it in a loop a certain number of
times. Any help would be appreciated.

Thanks,
J


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Test for value and set row height

In a regular module:

Sub test()
Dim cell As Range
Dim rng As Range
Set rng = Range("C3:C20")
For Each cell In rng
With cell
If .Value 0 Then
.RowHeight = 0
End If
End With
Next
End Sub

----
HTH
Jason
Atlanta, GA

-----Original Message-----
I would like to test for a value in a cell (i.e. cell C3
0) and if true
then set the row height to 0 then move the curser down

one cell and run the
test again. I also need the code to run it in a loop a

certain number of
times. Any help would be appreciated.

Thanks,
J


.

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
Set a minimum row height a the same time with autofit row height Julie B New Users to Excel 2 May 5th 23 07:44 PM
Row Height stopped growing and Auot-Fit Row Height does not work PSULionRP Excel Discussion (Misc queries) 0 May 19th 09 07:59 PM
need to dbl row height without changing height of cell next to it Excel-Illiterate New Users to Excel 1 May 16th 06 01:08 AM
Resizing row height to dynamically fit height of text box Jon Excel Discussion (Misc queries) 1 August 8th 05 01:37 PM
Set new row height based on current height puffy Excel Programming 2 January 14th 04 12:44 AM


All times are GMT +1. The time now is 12:42 PM.

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"