Excel的對(duì)象模型
Excel對(duì)象模型說明;對(duì)象的屬性方法事件
Application對(duì)象
Application屬性;代表excel應(yīng)用程序;application.activeworkbook;application.activesheet;application.activecell;Displayalerts;Screenupdating:statusbar。application的方法:Calculate;ontime; onkey ;quit
workbooks集合和workbook對(duì)象
workbooks屬性:count;activeworkbook;thisworkbook;author;saved。方法:activate;add;open;close;Save/save as 。workbook對(duì)象的事件:beforeclose;beforeprint;beforesave;deactivate;newsheet;open;sheetactivate;sheetbeforedoubleclick;sheetbeforrightclick;sheetcalculate;sheetchange
Range對(duì)象
range對(duì)象:可以代表一個(gè)單元,行,列,復(fù)合單元或一個(gè)三維范圍。range的屬性:Address;cells Currentregion;Value;Offset;Entirerow/entirecolumn;count。range對(duì)象的方法:Activate;Autofit;clear; clearconments;clearcontents;clearformats;clearnotes;copy ;pastespecial
其他對(duì)象
用vba創(chuàng)建和修改圖表;chart對(duì)象;用vba創(chuàng)建和修改透視表
VBA窗體
創(chuàng)建窗體;創(chuàng)建窗體控件;控件代碼編寫;調(diào)用窗體