| ©«¤l81 ¥DÃD27 ºëµØ0 ¿n¤À151 ÂI¦W0  §@·~¨t²Îwin7 ³nÅ骩¥»office2007 ¾\ŪÅv20 ©Ê§O¤k ¨Ó¦ÛTaiwan µù¥U®É¶¡2012-6-7 ³Ì«áµn¿ý2020-11-27 
 
 | 
 ¤£¦Pªºµ{¦¡¼gªk
| ·Q½Ð±Ð¥H¤U³o¤@¬qµ{¦¡¬O§_¦³°õ¦æ°_¨Ó¤ñ¸û§Öªº¼gªk ? §Ú¥u¬O·Q°Ñ¦Ò¬Ý¬Ý¤£¦Pªºµ{¦¡¼gªk.
 ·PÁÂ...
 For fcsty = 4 To put_rownum
 If .Cells(fcsty, "B") <> "" And Not .Cells(fcsty, "A") Like "*¦Xp" Then
 ' ¼W¥[§PÂ_ "B"Äæ¬°ªÅ¥Õ, ©Î¬O«O¯d "¦Xp" ªº¦C.
 If .Cells(fcsty, hid_colnum) < put_maxnum And .Cells(fcsty, hid_colnum) > put_minnum Then
 .Rows(fcsty).Hidden = True
 End If
 End If
 Next
 End With
 
 
 _________________________________________
 ¾ã¬qµ{¦¡
 Sub ProductsQ1FP()
 ActiveSheet.PivotTables("¼Ï¯Ã¤ÀªRªí1").PivotFields("Group").ClearAllFilters
 ActiveWindow.FreezePanes = False ' ¨ú®øáµ²µøµ¡
 Dim put_rownum As Integer
 Dim hid_colnum 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"
 put_rownum = ActiveSheet.Range("c2").Value  '³Ì«á¤@¦C
 put_maxnum = ActiveSheet.Range("b1").Value  '¤j©ó
 put_minnum = ActiveSheet.Range("b2").Value  '¤p©ó
 hid_colnum = ActiveSheet.Range("f1").Value  '±Æ§ÇÄæ
 With ActiveSheet
 .Cells(4, hid_colnum).Select            '´å¼Ð©ñ¸mÂI
 For fcsty = 4 To put_rownum
 If .Cells(fcsty, "B") <> "" And Not .Cells(fcsty, "A") Like "*¦Xp" Then
 ' ¼W¥[§PÂ_ "B"Äæ¬°ªÅ¥Õ, ©Î¬O«O¯d "¦Xp" ªº¦C.
 If .Cells(fcsty, hid_colnum) < put_maxnum And .Cells(fcsty, hid_colnum) > put_minnum Then
 .Rows(fcsty).Hidden = True
 End If
 End If
 Next
 End With
 End Sub
 | 
 |