资源描述:
《excel加载宏制作攻略vba(excel load macro production strategy vba)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、excel加载宏制作攻略vba(ExcelloadmacroproductionstrategyVBA)EXCELloadingmacroproductionstrategy,VBAlearning2008-11-15,16:02:42read60reviews0:big,mediumandsmallsubscriptionsI.overview1.generalstepsformakingmacroloading(1)createanewworkbook,whereyouaddcode.(2)onthefilemenu,clickproperties".Inthef
2、ilenameattributedialogbox,clickthetab,andtheninthetitleboxtoaddaspecifiedyouwantthe"addins"dialogwiththename,inthecommentsboxintheinputyouwantwhentheuserfromthe"addins"dialogboxtoselecttheaddtimeinthe"addins"dialogboxappearsbelowthedescriptioninformation.(3)onthefilemenu,clicksaveas".In
3、theSaveAsdialogbox,fromthesavetypebox,selectMicrosoftOfficeExcelloadmacro(*.xla),andthenselectsavepath,andmodifythefilenameinthefilenamebox.2.loadingandunloadingmacroloadingBasedonthetoolsmenu,clickthe"add",canmakeagoodloadloadingmacrofile,ifitisnotonthelist,inthe"add"dialogbox,clickBro
4、wsetofindit,whenacheckboxbeforeloadingthemacronameisselected,ithasbeenloaded.Uncheckthecheckboxtouninstalltheadd.3.functionofloadingmacroTheloadmacrocanextendthefunctionalityofEXCELbywritingcodeintheloadmacroandwritingitinplainworkbooks,withthefollowingadvantages:(1)theloadedmacroisvali
5、dforallopenEXCELfiles.Regularworkbookcodeusuallyworksonlyinaparticularworkbook.(2)theloadmacroisnotlimitedbythemacrosecuritylevel,nordoesithavehintsformacroactions.Evenifthesecuritylevelissetto"veryhigh",theloadmacroworksliketheinherentfunctionoftheEXCELitself.Similarly,itwillnotbeheldd
6、ownbytheShiftshield.NotusedtodrawparticularaddspecialVBAcodewritingfriendsisthatallthebenefitsandadvantagesofmacro,areconventionaloperatorsbelongingtoEXCEL,whileloadingthemacrocodecanbeanotherworkbook(thecode)call,butthisiscumbersomeandinefficient,don'ttakeitasaCinthe"head"fileorlinklib
7、rary.Maybenotmanypeoplethinkso,butwhenIwasabeginner,VBAwasreallysonaive.(3)whenthemacroisloaded,itsworkbookwindowishidden,soordinaryuserswon'tfeelit.Two,handleloadingmacrofunctionAddfunctionseemstobemakingaddinthemostsimple,usuallyonlyneedtowriteaFunctioncodeinthemodule,usethef