- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 4# register313 - Sub ProductsQ1FP()
- Dim Rng As Range
- ' 12Q1Fcst Vs. Q1Plan
- ActiveSheet.PivotTables("¼Ï¯Ã¤ÀªRªí1").PivotFields("Group").ClearAllFilters
- ActiveWindow.FreezePanes = False ' ¨ú®øáµ²µøµ¡
- Dim fcsty, put_rownum, hid_colnum, put_maxnum, put_minnum As Integer
- ActiveSheet.Rows.Hidden = False '¨ú®ø©Ò¦³ªºÁôÂÃ
- ActiveSheet.Range("c4").Select '´å¼Ð©ñ¦bc4
- ActiveWindow.FreezePanes = True 'áµ²µøµ¡
- ActiveWindow.ScrollColumn = 3 'áµ²¦C»PÄæªºµøµ¡
- ActiveSheet.PivotTables("¼Ï¯Ã¤ÀªRªí1").PivotFields("Group").AutoSort xlDescending, _
- "¥[Á` ªºQ1F-P"
- ' ¼Ï¯Ã¤ÀªR¥H¥[Á`ªºQ1F-P°µ±Æ§Ç
- put_rownum = ActiveSheet.Range("a1").Value '³Ì«á¤@¦C
- put_maxnum = ActiveSheet.Range("b1").Value '¤j©ó
- put_minnum = ActiveSheet.Range("b2").Value '¤p©ó
- hid_colnum = ActiveSheet.Range("f1").Value '±Æ§ÇÄæ
- With ActiveSheet
- For fcsty = 4 To put_rownum
- If .Cells(fcsty, "B") <> "" And Not .Cells(fcsty, "A") Like "*¦Xp" Then
- If .Cells(fcsty, hid_colnum) < put_maxnum And .Cells(fcsty, hid_colnum) > put_minnum Then
- If Rng Is Nothing Then
- Set Rng = .Range("A" & fcsty)
- Else
- Set Rng = Union(Rng, .Range("A" & fcsty))
- End If
- End If
- End If
- Next
- .Rows("4:" & put_rownum).Hidden = False
- End With
- Rng.EntireRow.Hidden = True
- End Sub
½Æ»s¥N½X |
|