Groups
Sign in
Groups
EXCEL函數與VBA設計
Conversations
Labels
About
Send feedback
Help
EXCEL下拉清單用VBA自動查詢與顯示不同資料
172 views
Skip to first unread message
吳老師
unread,
May 27, 2019, 10:03:25 PM
5/27/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to EXCEL函數與VBA設計
EXCEL下拉清單用VBA自動查詢與顯示不同資料
雖說用EXCEL的內建函數也可以做出類似的效果,
但要用IF、SMALL、IFERROR函數,還要會在EXCEL中執行陣列,
授課的結果,大多學員幾乎陣亡。
反而用VBA來撰寫自動查詢與顯示不同資料,
似乎就變簡單了,
只要會撰寫簡單的 For迴圈,用Cells物件,
將B到E欄資料,複製到G到J欄,
配合變數 k ,就可以逐一的將資料複製過來,
當然資料也可以是在不同的工作表或工作簿。
反而用VBA來處理顯得更加簡便,
所以,若有更複雜的工作,要提高工作效率,
建議,還是用VBA為佳。
如何用VBA來做,再來就是可以配合事件驅動,就可以省去按鈕動做了。
完整連結:
https://terry55wu.blogspot.com/2019/05/excelvba.html
吳老師 2019/5/27
Reply all
Reply to author
Forward
0 new messages