Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8065

Re: Need to hide when click on refresh work book option in Planning and consolidation ribbon

$
0
0

Hi Mark,

 

Now I am able to insert my and refresh the report. its hiding the rows which contain the 74*** Series.

But the problem is when the cost center chages the from the current view the showing some different result. I mean the sorting order total changed and ther previous hide rows are like that only...

 

please see the below code as reference.

 

Sub Refresh

Application.Run ("MNU_eTools_REFRESH")
Dim LR As Long: LR = Range("J" & Rows.Count).End(xlUp).Row

For I = 1 To LR
   
    If Trim(Range("J" & I).Value) >= 740000 And Trim(Range("J" & I).Value) <= 741100 Then
        Range("J" & I).EntireRow.Hidden = True
    End If
    If Trim(Range("K" & I).Value) = "TOTAL OFFICE_OTH" Then
        Range("K" & I).EntireRow.Hidden = True
    End If
   
Next I

End Sub

 

 

when the cost center changes the privously hidden rows has to be displayed and then hide the 74*** Series

 

Thanks,

Mallikarjunreddy.G


Viewing all articles
Browse latest Browse all 8065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>