




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、利用vba實現網頁中自動錄入成績2010?8?)?d16?d3?d?)?1?(?9?q)journalofanqingteacherscollege(naturalscienceedition)aug?a2010voi?a16no?a3?7?pvba?m?f?1?r2(1?a?t?)?1?l?w?r?o?200241?n2?a?7?l?3?a?*?u?r?7?325035)?cvba?woffice?c?c?p?e?u?r?p?9?office?m0?d?7?pexcel?m?vba?o?e?u?r?3?pexcel?m?f?m?3?f?r?um0?u?m0?d?r?)?d?g?i?s?r?j
2、?p?km0?w?cvba?nole?n?m?3?ctp311?w?(?2?ca?e?c1007vg4260(2010)03-0124-040?t?21?e?w?-?e?h?c?r?e?c?l?m?o?m2?gm2?3?8?-?m0?8?o?p?n?r?u?o?p?e?3?w?r?8?v?p?e?r?z?p?*?e?3m0?o?j?m2?f?r?p?8?o?r?p?q?r?d?j?m2?f?r?r?)?x?n?m0?f?r?)?c?r?3?d?8?f?*?q?f?m?f?-?m?3?m0?d?c?)?r?w?y?>?f?r?i?s?n?m0?l?c?*?q?f?w?pexcel?r?d?
3、=?excelvba?z?r?e?u?3excel?j?m?3?f?m01?vba?vba(visualbasicforapplication)?w?c?p?office?e?r?poffice?8?-?m?r?p?9?office?r?l?l?office?pm0?=?p?p?p?u?basic?r?p?e?u?m2?p?o?avisualbasic?r?r?p?r?i?i?p?r?i?m0?p?poffice?c?r?y?c?z?m?n?l?r?p?w?p?8?3?l?r?c?f?r?r?c?vba?e?8?3?r?3?em02?u?2?a1vba?p?u?m?&?v?r?m2?&
4、amp;?km2?m2?e?w?m0?pvba?2?m?r?p?p?e?f?l?k?r?p?m0?vba?m?wapplication?r?papplication?m?6?p?)(?document?rwindows?rselecvgtion?rcommandbars?)?r?u?2?p?p?u?m?n?microsoftexcel?u?r?9?a?pmicrosoftexcel?m?um0setxl=createobject(vsexcel?asheetvs)x1?aapplication?aworkbooks?aopenvsnewbook?axlsvs2?a20le?o?*?9?u?d?
5、c2009vg12vg09?6?c?r?r?r?r?t?)?1?l?w?p?r?7?l?3?a?*?u?)?r?g?a?n?z?pm03?d?c?7?pvba?m?f?125?ole?o?wmicrosoft?w?r?>?p?-?p?u?m?p?e?-?p?u?r?>?c?t?p?-?p?u?l?e?m0?c?ole?e?r?a?p?p?u?vt?d?pvs?f?p?u?3?e?r?r?l?l?r?7?d?r?n?r?=?wole?e?x?8?r?vba?mcreateobject?r?c?-?a?w?2ole?o?p?u?t?pm0?u?2?3?n?-microsoftexcel
6、?*?p?3?exvgeelsheetm0dimexcelsheetasobjectsetexcelsheet=createobject(vsexcel?asheetvs)3?u?g?23?a1?n?l?j?o?1?u?addbar()?r?n?vt?f?3vs?l?r?)?m0?2?usubaddbar()dimtoolsnameasstringtoolsname=vs?f?3vsonerrorresumenextapplication?acommandbars(toolsname)?adelete7?b?c?o?l?r?q?v?setgj=application?acommandbars?
7、aadd(name?c=toolsname?rposition?c=msobartop?rtemporary?c=true)vs?n?vt?f?3vs?k?l?r?excel?c?v?setmcommand=gj?acontrols?aadd(type?c=msocontrolbutton?rid?c=2949)withmcommand?acaption?vs?f?vs?astyle=msobuttoncaption?aonaction=vsstartfillvsendwithvs?zvt?f?3vs?l?r?-vt?f?vs?j?gj?avisiblevgtruemsgboxvs?l?fvs
8、endsub3?a2?f?o?1?u?autofill(colasstring)?r?3excel?*?q?f?m?j?m?c?f?m?col?c(col?k?zpsm2qzm2qm?esy)?c?d?m0?f?1?<?zm0?1?m?8?f?c?f?r?c?=?3?r?&?k?m?datagridlvgctl2?kx(xx?zps?rqz?rqm?esy)?z?m?p?f?d?phtml?2?m?n?m0?1?3?f?2?u?csubautofill(colasstring)setoshell=createobject(vsshell?aapplicationvs)vs?n?s
9、hell?setow=oshell?awindows()7?n?shell?el?ow126?)?1?(?9?q)2010?found=falsevs?j?m?3?f?onerrorgotoerrhandfori=0toow?acount?17?<?j?nm=ucase(ow?aitem(i)?afullname)vs?n?w?r?s?r?u?-(?ie?maxthon?)ifinstr(nm?rvsiexplore?aexevs)=0andinstr(nm?rvsmaxthon?aexevs)=0thengotopassifow?aitem(i)?adocument?atitle<
10、;>vs?3?vsthengotopassiflen(ow?aitem(i)?adocument?abody?ainnertext)<1000thengotopassno=1found=truevs?m?3?f?vs?3excel?*?q?f?m?j?m?c?f?f?-?m?c?d?rforeachrinselectionno=no+maid=vsdatagridlctlvs&no?3ifvgtl&colow?aitem(i)?adocument?agetelementbyld(id)?avalue=nextpass?cnextifnotfoundthenmsgbo
11、xvs?f?vsuserforml?ahidevs?u?g?exitsuberrhand?cresumepassendsub3?a3?2?o?1?u?startfill()?r?h?z?u?substartfill()userforml?ashowendsubstr(round(r?avalue?r0)?1?u?userforml?1?r?g?6?u?s?e?2?vt?vs?j?2m0privatesubcommandlvgclick()vm?vs?j?2?r?1?pautofill?autofillright(listl?atext?r2)endsubprivatesublistl?dblc
12、lick(byvalcancelasmsforms?areturnboolean)commandl?a?aclickendsubprivatesubuserforminitialize()?u?s?elistl?aaddhemvs?f?psvslistl?aaddltemvs?d?m?f?qzvslistl?aaddltemvs?d?p?f?qmvslistl?aaddltemvs?f?syvs3?d?c?7?pvba?m?f?127?endsub4?d?7?pvba?p?3?f?m?f?r?w?)?n?>?f?i?s?r?m?c?)?m0?p?u?r?q?*?q?f?excel?r?3
13、?m?c?f?j?m?r?vt?f?3vs?l?m?vt?f?vs?j?r?p?a?f?c?m?j?m?f?m0?u?j?c?-?m?r?p?u?m?j?w?x?w?f?r?j?6?o?2m0?1?w?c113?h?aexcel?q?vgvgvba?a?hm?a?c?c?a?*?q?h?r2006?aez?aexcelvba?p?<?m?m?a?c?c?*?c?q?h?r2007?ci?30?a3?r?a?vba?p?3?j?a?)?1?c?9?q?r2007(04)?c67vg70?aregisterresultinthewebpageautomaticallybyusingvbaji
14、angzhi(eastchinanormaluniversity?rcollegeofinformationscienceandtechnology?rmasterofscience?rshanghaim0200241?nwenzhouuniversity?rcollegeofphysics&electronicinformationengineering?azhejiang325035)abstract?cvbaisacommonprogramminglanguageembeddedinoffice?rwhichisusedtocustomizeandexpandthefunctio
15、nsofoffice?ainthisarticle?rtheauthorusesvbainexceltoredevelopprogramming?rwhichachievesthefunctionofinputtingautomaticallytheresultssavedintheexcelfilesintothepageforresultsregistrationintheinformationmanvgagementsystemm0andtheauthoralsoexplainshowtheprocessisachievedindetails?atheprogramissimpleand
16、rapidinautomaticinput?rsolvingtheproblemssuchasslownessanderrorvgproneofmanualinput?atheprogramisofcertainpracvgticalvalue?akeywords?cvba?nole?rrecordautomatically(?o?d120?)?w?m0?vt?vs?z?m?o?l?w?vt?p?r?p?vs?3?r?d?p?m?m?r?p?m?n?vt?vs?z?m?o?l?d?3?m2?m0?a?r?o?l?o?*?w?u?p?r?d?n?r?p?u?j?<?l?m0?1?w?ce1
17、?a?*?w?<(?o?3)m?a?q?h?r2006?n121vg126?a2?a?o?*?w?f?o?l?ij?a?*?g?*?2008?r30(3)?c4vg5?a3?v?a?o?*?w?<?a?ui-m?a?q?h?r2006?c58vg61?ateachingmodeinanalogelectronictechniquebydummyitemdingxiao-gui?rqianmeng(departmentofcomputerandinformation?ranqingteacherscollege?ranqing246133)abstract?canalogelectronictechniqueisoneofthebasiccoursesofelectricalinformationscience?ainordertokeepplacewiththenewdevelopmentinthisfield?rcultivateinnovativestudentsandpromoteabilitycourses?rtherefortlxisprovgposedwithmodifyingteachingcontent
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權】 ISO/TR 23652:2024 EN Nanotechnologies - Considerations for radioisotope labelling methods of nanomaterials for performance evaluation
- 【正版授權】 ISO 4064-1:2024 EN Water meters for cold potable water and hot water - Part 1: Metrological and technical requirements
- 包露與配偶2025年度離婚經濟補償及贍養(yǎng)費協議
- 2025年度太陽能光伏發(fā)電系統(tǒng)設計與施工總承包協議
- 2025年度環(huán)境安全監(jiān)測與治理服務合同協議
- 班級體育活動的組織與安排計劃
- 庫存分析對倉庫決策的支持計劃
- 急診呼吸機使用規(guī)范與管理計劃
- 提高團隊創(chuàng)新力的工作總結計劃
- 2025年建筑鋁擠壓材項目建議書
- 人教版PEP五年級英語下冊單詞表與單詞字帖 手寫體可打印
- 第七節(jié)碎石路基施工方案
- 三年級數學興趣班綱要及教案
- 記者行業(yè)現狀分析及發(fā)展趨勢
- 如果歷史是一群喵
- 抖音房產直播敏感詞匯表
- 2024屆山東省青島市市北區(qū)八年級物理第二學期期末質量檢測試題含解析
- 2024年漯河食品職業(yè)學院單招職業(yè)適應性測試題庫附答案
- 廣東省深圳市2023年中考英語試題(含答案與解析)
- 《看看我們的地球》
- 2022-2023年人教版九年級化學(上冊)期末試題及答案(完整)
評論
0/150
提交評論