Gr8, thanks a lot, its working, this saves my lot of time to hide each row
one by one.
Thanks once again.
Regards

On Sun, Dec 4, 2011 at 5:38 PM, Sam Mathai Chacko <samde...@gmail.com>wrote:

> 1. change
>
> Cells(Rows.Count, "b").End(xlUp).Row - 1 To *4* Step -1
>
> 2. Change
>
> If Cells(i, "I") >= 0 And Cells(i, "L") >= 0 Then
>      Rows(i).Hidden = True
> else
>      Rows(i).Hidden = False
> End if
>
> Regards,
> Sam Mathai Chacko
>
> On Sun, Dec 4, 2011 at 3:27 PM, AbdulGani Shaikh 
> <itpabdulg...@gmail.com>wrote:
>
>>  Thanks Sir,
>> Its working, but it also hide its heading, is there any solution for not
>> to hide Column heading. (First three rows are heading)
>>
>> This code hides all row having positive value in *both* column i.e. *"I"*&
>> *"L"*.
>> If value in any one column may be in *"I"* OR *"L"* is positive,* *then
>> how to show that particular row ?
>>
>> Regards
>>
>>
>>  On Sun, Dec 4, 2011 at 3:13 PM, AbdulGani Shaikh <itpabdulg...@gmail.com
>> > wrote:
>>
>>> Thanks Sir,
>>> Its working, but it also hide its heading, is there any solution for not
>>> to hide Column heading. (First three rows are heading)
>>> Regards
>>>
>>>  On Fri, Dec 2, 2011 at 8:13 PM, dguillett1 <dguille...@gmail.com>wrote:
>>>
>>>>   Option Explicit
>>>> Sub ShowNegativesInColumnsI_L_SAS()
>>>> Dim i As Long
>>>> Application.ScreenUpdating = False
>>>> On Error Resume Next
>>>> For i = Cells(Rows.Count, "b").End(xlUp).Row - 1 To 1 Step -1
>>>>   If Cells(i, "I") >= 0 Or Cells(i, "L") >= 0 Then _
>>>>      Rows(i).Hidden = True
>>>> Next
>>>> Application.ScreenUpdating = True
>>>> End Sub
>>>>
>>>> Sub UnhideRows()
>>>> Rows.Hidden = False
>>>> End Sub
>>>> ‘============
>>>> Don Guillett
>>>> SalesAid Software
>>>> dguille...@gmail.com
>>>>
>>>>  *From:* AbdulGani Shaikh <itpabdulg...@gmail.com>
>>>> *Sent:* Thursday, December 01, 2011 9:45 PM
>>>> *To:* excel-macros@googlegroups.com
>>>> *Subject:* $$Excel-Macros$$ Re: Want to hide entire row
>>>>
>>>>  Pl.help
>>>>
>>>> On Thu, Dec 1, 2011 at 4:41 PM, Abdulgani Shaikh <
>>>> abdulgani.sha...@sarda.co.in> wrote:
>>>>
>>>>> I want to hide entire row if value in column "*I*" & column "*L*" is
>>>>> greater than or equal to "*0*".
>>>>> In other words if value in column i & l is less than zero then only
>>>>> such row to be shown otherwise hidden.
>>>>>
>>>>> Pl help
>>>>>
>>>>> Regards
>>>>>
>>>>>
>>>> --
>>>> FORUM RULES (934+ members already BANNED for violation)
>>>>
>>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>>> will not get quick attention or may not be answered.
>>>>
>>>> 2) Don't post a question in the thread of another member.
>>>>
>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>> measure.
>>>>
>>>> 4) Acknowledge the responses you receive, good or bad.
>>>>
>>>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>>>> signatures are prohibited.
>>>>
>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>> Forum owners and members are not responsible for any loss.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------------------------------
>>>> To post to this group, send email to excel-macros@googlegroups.com
>>>>
>>>> --
>>>> FORUM RULES (934+ members already BANNED for violation)
>>>>
>>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>>> will not get quick attention or may not be answered.
>>>>
>>>> 2) Don't post a question in the thread of another member.
>>>>
>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>> measure.
>>>>
>>>> 4) Acknowledge the responses you receive, good or bad.
>>>>
>>>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>>>> signatures are prohibited.
>>>>
>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>> Forum owners and members are not responsible for any loss.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------------------------------
>>>> To post to this group, send email to excel-macros@googlegroups.com
>>>>
>>>
>>>
>> --
>> FORUM RULES (934+ members already BANNED for violation)
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>>
>> 2) Don't post a question in the thread of another member.
>>
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>>
>> 4) Acknowledge the responses you receive, good or bad.
>>
>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>
>
>
> --
> Sam Mathai Chacko
>
> --
> FORUM RULES (934+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to excel-macros@googlegroups.com
>



-- 
Shaikh AbdulGani A R
ITP, STP, TRP, STRP

-- 
FORUM RULES (934+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to