查看完整版本 : (新手一問)VBA 程式-按資料分析工作表

applegggz 2022-11-22 18:46

上網copy 左程序用,但用後, 除左按Coulmn H 分拆worksheets 外,還新建多餘worksheets (eg sheet xx)
[attach]13774949[/attach]
[attach]13774950[/attach]
[attach]13774951[/attach]


於建好worksheet後, 資料分拆到worksheets , 程序在網上參考,但執行時出現錯誤,請指教。

[attach]13774952[/attach]
[attach]13774953[/attach]

kormer 2022-11-25 02:27

要讀科大vba course先識㗎

cpfynot 2022-11-25 15:47

[quote]原帖由 [i]applegggz[/i] 於 2022-11-22 18:46 發表 [url=https://computer.discuss.com.hk/redirect.php?goto=findpost&pid=553920616&ptid=30871747][img]https://computer.discuss.com.hk/images/common/back.gif[/img][/url]
上網copy 左程序用,但用後, 除左按Coulmn H 分拆worksheets 外,還新建多餘worksheets (eg sheet xx)
[img]https://img.discuss.com.hk/d/attachments/day_221122/20221122_d14fee8b02916dab38c2G94vjuYuZEiJ.jpg[/img]
[img]https://img.discuss.com.hk/d/attachments/day_221122/20221122_cc0cd1960481c6c73298r5HkKPpG2keL.jpg[/img] ... [/quote]
電腦讀唔到cName 所以揀唔到工作表

alee001 2022-11-25 21:07

試下刪晒所有數字worksheet,行macro3()之後再行fenlei()?

cpfynot 2022-11-25 23:24

多餘的新建Worksheet是因為H行有重複數字,由於名稱不能重複,所以沒有執行改名動作

[[i] 本帖最後由 cpfynot 於 2022-11-25 23:26 編輯 [/i]]
頁: [1]
查看完整版本: (新手一問)VBA 程式-按資料分析工作表