Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default HIDE ROWS IF..

how to hide rows that have values from 0 to 40 in one column depending on top
value of 3 cells? TIA

a1=2 b1=5 c1=4

result:
0
1
2
3
4
5

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default HIDE ROWS IF..

Hi TiDz,

Your question is unclear.

Please try to re-explain your needs.

--
---
Regards,
Norman



"TiDz" wrote in message
...
how to hide rows that have values from 0 to 40 in one column depending on
top
value of 3 cells? TIA

a1=2 b1=5 c1=4

result:
0
1
2
3
4
5



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default HIDE ROWS IF..

Hi Norman,
I'll try :)
I've values in one column in 41 rows from 0 to 40 and I need left of that
such quantity depending on top value of 3 cells:
if:
a1=2 b1=5 c1=4
result:
0
1
2
3
4
5
or if:
a1=3 b1=1 c1=4
result:
0
1
2
3
4


"Norman Jones" rašė:

Hi TiDz,

Your question is unclear.

Please try to re-explain your needs.

--
---
Regards,
Norman



"TiDz" wrote in message
...
how to hide rows that have values from 0 to 40 in one column depending on
top
value of 3 cells? TIA

a1=2 b1=5 c1=4

result:
0
1
2
3
4
5




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default HIDE ROWS IF..

Hi Norman,
I'll try :)
I've values in one column in 41 rows from 0 to 40 and I need left of that
such quantity depending on top value of 3 cells:
if:
a1=2 b1=5 c1=4
result:
0
1
2
3
4
5
or if:
a1=3 b1=1 c1=4
result:
0
1
2
3
4


"Norman Jones" rašė:

Hi TiDz,

Your question is unclear.

Please try to re-explain your needs.

--
---
Regards,
Norman



"TiDz" wrote in message
...
how to hide rows that have values from 0 to 40 in one column depending on
top
value of 3 cells? TIA

a1=2 b1=5 c1=4

result:
0
1
2
3
4
5




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default HIDE ROWS IF..

Hi TiDz,

Try:

'=============
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet
Dim rng As Range
Dim iMax As Long
Dim i As Long
Const col As String = "H" '<<==== CHANGE

Set WB = Workbooks("YourBook.xls") '<<==== CHANGE
Set SH = WB.Sheets("Sheet1") '<<==== CHANGE
Set rng = SH.Range("A1:C1") '<<==== CHANGE

iMax = Application.Max(rng)

SH.Columns(col).Insert

For i = 0 To iMax
SH.Cells(i + 1, col).Value = i
Next i

End Sub
'<<============



---
Regards,
Norman

"TiDz" wrote in message
...
Hi Norman,
I'll try :)
I've values in one column in 41 rows from 0 to 40 and I need left of that
such quantity depending on top value of 3 cells:
if:
a1=2 b1=5 c1=4
result:
0
1
2
3
4
5
or if:
a1=3 b1=1 c1=4
result:
0
1
2
3
4


"Norman Jones" rase:

Hi TiDz,

Your question is unclear.

Please try to re-explain your needs.

--
---
Regards,
Norman



"TiDz" wrote in message
...
how to hide rows that have values from 0 to 40 in one column depending
on
top
value of 3 cells? TIA

a1=2 b1=5 c1=4

result:
0
1
2
3
4
5








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default HIDE ROWS IF..

Thanks, Norman
but it doesn't work for me
likely it's my blame after complicated explanation :)

it's inserting a new column, but I need to do auto "hide/unhide" of rows in
fixed range "a1:a41" (not by inserting a new column) depending by entering a
diferent values from 0 to 40 in 3 fixed cells...

any suggestion?.. :)



"Norman Jones" rašė:

Hi TiDz,

Try:

'=============
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet
Dim rng As Range
Dim iMax As Long
Dim i As Long
Const col As String = "H" '<<==== CHANGE

Set WB = Workbooks("YourBook.xls") '<<==== CHANGE
Set SH = WB.Sheets("Sheet1") '<<==== CHANGE
Set rng = SH.Range("A1:C1") '<<==== CHANGE

iMax = Application.Max(rng)

SH.Columns(col).Insert

For i = 0 To iMax
SH.Cells(i + 1, col).Value = i
Next i

End Sub
'<<============



---
Regards,
Norman

"TiDz" wrote in message
...
Hi Norman,
I'll try :)
I've values in one column in 41 rows from 0 to 40 and I need left of that
such quantity depending on top value of 3 cells:
if:
a1=2 b1=5 c1=4
result:
0
1
2
3
4
5
or if:
a1=3 b1=1 c1=4
result:
0
1
2
3
4


"Norman Jones" rase:

Hi TiDz,

Your question is unclear.

Please try to re-explain your needs.

--
---
Regards,
Norman



"TiDz" wrote in message
...
how to hide rows that have values from 0 to 40 in one column depending
on
top
value of 3 cells? TIA

a1=2 b1=5 c1=4

result:
0
1
2
3
4
5







  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default HIDE ROWS IF..

Hi TiDz,

If you wish, you may send me a sample workbook.In one sheet, show your
intial data; in another sheet, show the desired results.

norman_jones@NOSPAMbtconnectDOTcom

(Delete "NOSPAM" and replace "DOT" with a full stop [period] )

---
Regards,
Norman



"TiDz" wrote in message
...
Thanks, Norman
but it doesn't work for me
likely it's my blame after complicated explanation :)

it's inserting a new column, but I need to do auto "hide/unhide" of rows
in
fixed range "a1:a41" (not by inserting a new column) depending by entering
a
diferent values from 0 to 40 in 3 fixed cells...

any suggestion?.. :)



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
Group rows (or hide rows) like in MS Project Annie1904 Excel Worksheet Functions 2 October 17th 09 05:15 AM
Macro code to hide rows and not calculate hidden rows bradmcq Excel Discussion (Misc queries) 0 September 1st 09 12:38 AM
Enabling option „Format rows“ to hide/unhide rows using VBA-code? ran58 Excel Discussion (Misc queries) 0 July 28th 09 03:46 PM
cut rows without cutting hide rows מיכל Excel Discussion (Misc queries) 1 June 25th 07 02:01 PM
Hide Rows - copy and paste only rows that show Access101 Excel Worksheet Functions 3 March 1st 06 12:39 AM


All times are GMT +1. The time now is 11:48 PM.

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"