[算表] 降低含有巨集的檔案大小
看板Office作者brotherashin (Mao'la-gagugisu'one)時間16年前 (2009/12/05 00:18)推噓1(1推 0噓 4→)留言5則, 3人參與討論串1/2 (看更多)
軟體:excel
版本:2003
因為工作需要,在excel中錄了一個巨集再加以修改
(才剛開始學VBA,不是很會寫 哈)
如下
Sub 負責系統列表()
Sheets("System").Select
Selection.AutoFilter Field:=1, Criteria1:=Range("J1")
Range("C1:I306").Select
Selection.Copy
Sheets("Handover").Select
Range("B7").Select
ActiveSheet.Paste
Selection.AutoFilter
Range("B7:H28").Sort Key1:=Range("B9"), Order1:=xlAscending
End Sub
和這個巨集相關的工作表有 "Handover" 和 "System"
巨集是用來filter "system" 裡的資料
然後複製貼上到 "handover"這個工作表再作排序
不知道為什麼這個巨集錄完後,我的檔案變成3MB @@
有板友知道要怎麼修改才能縮小檔案的size嗎?
(因為是要share給同事用,大家以後會常常用e-mail寄送這個檔案
不希望它太大~)
感謝喔!
--
╭───────────────────────────╮
│With this hand I will lift your sorrows. │
│Your cup will never be empty, for I will be your wine.│
│With this candle, I will light your way into darkness.│ ╭╮
│With this ring, I ask you to be mine. │Corpse Bride╭┼╯
╰───────────────────────────╩──────┴╯
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 119.15.215.29
→
12/05 00:35, , 1F
12/05 00:35, 1F
→
12/05 00:49, , 2F
12/05 00:49, 2F
→
12/05 00:50, , 3F
12/05 00:50, 3F
→
12/05 00:51, , 4F
12/05 00:51, 4F
推
12/05 09:28, , 5F
12/05 09:28, 5F
討論串 (同標題文章)
Office 近期熱門文章
PTT數位生活區 即時熱門文章