Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Can visual basics hide rows based on cell values?

Can visual basics hide rows based on cell values? If for example a specific
cell has a value less than 1, then the entire row is hidden.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 341
Default Can visual basics hide rows based on cell values?

Yes

If Range("B6").Value < 1 Then Range("B6").EntireRow.Hidden = True
--
Allllen


"Jerrypetch" wrote:

Can visual basics hide rows based on cell values? If for example a specific
cell has a value less than 1, then the entire row is hidden.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Can visual basics hide rows based on cell values?

Thank You very much, that's exactly what I needed.

"Allllen" wrote:

Yes

If Range("B6").Value < 1 Then Range("B6").EntireRow.Hidden = True
--
Allllen


"Jerrypetch" wrote:

Can visual basics hide rows based on cell values? If for example a specific
cell has a value less than 1, then the entire row is hidden.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 179
Default Can visual basics hide rows based on cell values?

Hi Jerry

Of course it can, how do you want to trigger the procedure?
By clicking on a button, or automatically after update, when
you open the Workbook??

Do you want it to be a specific cell, or any cell in the row?

i'll post the code, as soon as you post your preferences on
these questions!

Cheers Carlo


"Jerrypetch" wrote:

Can visual basics hide rows based on cell values? If for example a specific
cell has a value less than 1, then the entire row is hidden.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Can visual basics hide rows based on cell values?

something like

for i=cells(rows.count,"a").end(xlup).row to 2 step -1
if cells(i,"a")=1 then rows(i).hidden=true
next

--
Don Guillett
SalesAid Software

"Jerrypetch" wrote in message
...
Can visual basics hide rows based on cell values? If for example a
specific
cell has a value less than 1, then the entire row is hidden.





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
Lookup Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
Selecting rows based on cell entries m.cain Excel Discussion (Misc queries) 2 March 24th 06 10:46 AM
hide rows based on cell value dummster New Users to Excel 1 February 15th 06 11:37 PM
hide rows based on value in cell dummster Excel Discussion (Misc queries) 0 February 15th 06 03:27 PM
generate multiple rows based on cell value Theresa Excel Worksheet Functions 0 May 25th 05 11:18 PM


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