èæ¯
ããã¯ãã¹ãŠçŽ4幎åã«å§ãŸããŸããã ãã·ã¢ã®å€§èŠæš¡ãªå°å£²ãã§ãŒã³ã®ããžãã¹ããã»ã¹ãèªååããå¥ã®ãããžã§ã¯ãã«åãçµã¿ããªãã£ã¹ã¢ããªã±ãŒã·ã§ã³ãç¹ã«Excelçšã®ã¢ããªã³ã®éçºã«èå³ãæã¡ãŸããã 顧客äŒæ¥ã®åŸæ¥å¡ãæ¥åžžã®å埩æ¥åã«å€ãã®æéãè²»ãããŠããã®ãèŠãã®ã«æ°æ¥ããããŸããããç§ã¯åœŒãã®äººçãåçŽåããæ¹æ³ã«ã€ããŠå€ãã®ã¢ã€ãã¢ãæãã€ããŸããã
åœæãéçºè ãšããŠãéå žåçãªã¿ã¹ã¯ã®ããã«Excelããæ¡åŒµããã2ã€ã®æ¹æ³ããããŸããã
- VBA ïŒVisual Basic for ApplicationsïŒ;
- VSTO ïŒVisual Studio Tools for OfficeïŒã
ãã¹ãŠã®Excelã¢ãã€ã³éçºè ã¯ãäž¡æ¹ã®ã¢ãããŒãã®é·æãšçæãããç¥ã£ãŠãããšæããŸãã äž¡æ¹ã®å€§ããªå©ç¹ã¯ãã»ãšãã©ãã¹ãŠã®ã¿ã¹ã¯ãèªååã§ããéåžžã«è±å¯ãªAPIã§ãã æ¬ ç¹ã«ã¯ããã®ãããªæ¡åŒµæ©èœã®ã€ã³ã¹ããŒã«ã®é£ãããå«ãŸããŸãã ããã¯ç¹ã«ãVSTOã«åºã¥ãã¢ããªã³ã®å Žåã«åœãŠã¯ãŸããŸããå€ãã®å Žåãã€ã³ã¹ããŒã«ã«ã¯ç®¡çè æš©éãå¿ èŠã§ããããã®ååŸã¯ãšã³ããŠãŒã¶ãŒã«ãšã£ãŠåé¡ã«ãªãå¯èœæ§ããããŸãã
è°è«ããã®èšäºã®ç¯å²å€ã§ããããã€ãã®çç±ã®ããã«ãç§ã¯èªåã§VSTOã®ãªãã·ã§ã³ãéžæããŸããã ããããŠãMicrosoft Excelçšã®æåã®ã¢ãã€ã³-XLToolsãèªçããŸãã ã 補åã®æåã®ããŒãžã§ã³ã«ã¯ã次ãå¯èœã«ããããŒã«ãå«ãŸããŠããŸãã
- Excelã»ã«ã§ããŒã¿ã¯ãªãŒãã³ã°ãå®è¡ããŸãïŒäœåãªã¹ããŒã¹ãå°å·ã§ããªãæåãåé€ããããã¬ãžã¹ã¿ã1ã€ã®ãã¥ãŒã«è¡šç€ºããããããªã©ïŒã
- ããŒãã«ãã2次å ãã¥ãŒãããããã©ãããïŒãããã解é€ïŒã«å€æããŸãã
- åã®ããŒã¿ãæ¯èŒãã
- äžèšã®ãã¹ãŠã®ã¢ã¯ã·ã§ã³ãèªååããããŒã«ã
Officeã¹ãã¢ã®ç»å Ž
XLToolsã¢ãã€ã³ã®æåã®ããŒãžã§ã³ããªãªãŒã¹ãããŠããããã1幎åŸãMicrosoftã¯Officeã®æ¡åŒµæ©èœã宣äŒããããã®æ°ãããã©ãããã©ãŒã ã§ããOfficeã¹ãã¢ãç«ã¡äžããŠããããšãç¥ããŸããã æåã«èããã®ã¯ãããã§æ°ããXLToolsã¢ããªã³ãå ¬éã§ãããã©ããã§ãã æ®å¿µãªããããã¶ã幞ããããããŸãããããã®è³ªåã«å¯Ÿããçãã¯ãããããã§ãã VBAã¢ãã€ã³ãVSTOã¢ãã€ã³ãOfficeã¹ãã¢ã«å ¬éã§ããŸããã ããããåæºãã䟡å€ã¯ãããŸããïŒ å¹žããªããšã«ãããã«çãããããŸã-ãããã䟡å€ã¯ãããŸããã 次ã«ããã®çç±ã説æããŸãã
Officeçšã®æ°ããã¢ãã€ã³
Officeã¹ãã¢ãšã¯äœã§ããïŒãªãå¿ èŠãªã®ã§ããïŒ èŠããã«ãããã¯ããŠãŒã¶ãŒãéçºè ãã Excel ã Word ã Outlook ã OneNote ã PowerPointãªã©ãOfficeããã°ã©ã ã®æšæºæ©èœãæ¡åŒµããã¢ããªã³ãæ€çŽ¢ãããŠã³ããŒãã販売ãè³Œå ¥ããã®ã«åœ¹ç«ã€ãã©ãããã©ãŒã ã§ãã 以åã®ãšã³ããŠãŒã¶ãŒãæ€çŽ¢ãšã³ãžã³ã§å¿ èŠãªã¢ããªã³ãæ¢ãå¿ èŠããã£ãå Žåããã®ç®çã®ããã«ãOfficeã¹ãã¢ãšããåäžã®å ŽæãäœæãããOfficeããã°ã©ã ã®ã€ã³ã¿ãŒãã§ã€ã¹ããçŽæ¥ã¢ã¯ã»ã¹ã§ããŸãã ã¡ãã¥ãŒé ç®[æ¿å ¥]-> [ãã€ã¢ããªã³]ïŒ
æ¢ã«ããã£ãããã«ãVBAãŸãã¯VSTOã䜿çšããŠéçºãããã¢ããªã³ã¯ãOfficeã¹ãã¢ã«å ¬éã§ããŸããã Office 365ããã³Office Storeã®ãªãªãŒã¹ã«äŒŽããMicrosoftã¯OfficeçšJavaScript APIã䜿çšããŠã¢ãã€ã³ãéçºããæ°ããæ¹æ³ãæäŸããŸãããããã«ã¯ã HTML5ãCSSãJavaScript ã WebãµãŒãã¹ãªã©ã®Webãã¯ãããžãŒã䜿çšããã¢ããªã±ãŒã·ã§ã³ã®éçºãå«ãŸããŸã ã
æ°ããã¢ãããŒãã«ã¯ãé·æãšçæã®äž¡æ¹ããããŸãã å©ç¹ã¯æ¬¡ã®ãšããã§ãã
- Officeã¹ãã¢ããã¢ããªã³ãç°¡åã«ã€ã³ã¹ããŒã«ã§ããŸãã
- ããã«äœ¿çšã§ããã¯ãã¹ãã©ãããã©ãŒã ïŒExcel 2013/2016ã Excel Online ãExcel for iPad ïŒ;
- èç©ãããWebéçºã®çµéšã掻çšããèœåïŒããŒã ã«æ¢ã«Webéçºè ãããå Žåãæ°ãããã¯ãããžãŒãåŠã¶å¿ èŠã¯ãããŸããïŒ;
- ã¢ããªã³ãåºå®äŸ¡æ ŒãŸãã¯ãµãã¹ã¯ãªãã·ã§ã³ã§è²©å£²ã§ããæ¢è£œã®ã€ã³ãã©ã¹ãã©ã¯ãã£ã
æ°ããã¢ãããŒãã®æ¬ ç¹ã®ãã¡ãç§ã¯ãããŸã§ã®ãšããéåžžã«éèŠãªãã®ã®1ã€ã ããéžã³åºãããšãã§ããŸãã
- VSTOããã³VBAãšæ¯èŒããŠAPIã®æ©èœãå£ããŸãïŒãã®åé¡ãAPIã®æ°ããããŒãžã§ã³ã®ãªãªãŒã¹ãšã®é¢é£æ§ãäœäžããããšãé¡ã£ãŠããŸãïŒã
ãæ°ããèŠåã«åŸã£ãŠãExcelçšã¢ãã€ã³ã®éçº
ã§ã¯ãæ代ã«é ããã«ãOfficeã®æ°ããã¢ããªã±ãŒã·ã§ã³ã®æ³¢ãèŠéããããªãå Žåã¯ãã©ãããå§ããã°ããã®ã§ããããã
2ã€ã®ãªãã·ã§ã³ããããŸãã çŸæç¹ã§ã¯ã次ã®JavaScript APIã«åºã¥ããŠã¢ããªã±ãŒã·ã§ã³ãéçºã§ããŸãã
- Napaã¯ãã¯ã€ãã¯ã¹ã¿ãŒãçšã®éçºç°å¢ã®è»œéWebããŒãžã§ã³ã§ãã Visual Studioãæã£ãŠããªãéçºè ããŸãã¯Windows以å€ã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§éçºãããéçºè ã«åœ¹ç«ã¡ãŸãã
- Visual Studio ãããŒãžã§ã³2012以éãã€ã³ã¹ããŒã«æžã¿ã®Office Developer Tools-ãã匷åã§æ©èœçãªéçºç°å¢ã 以åã«VSTOçšã«éçºãã人ã¯ããã®ãªãã·ã§ã³ã§ããã«éå§ã§ããŸãã 圌ãã¯ãã§ã«Visual Studioãæã£ãŠããŸãã
ãã®èšäºã§ã¯ãVisual Studioã䜿çšããéçºãæ€èšããŸãã ç§èªèº«ã䜿çšããŠããŸãã Napaã®è©Šçšã«èå³ãããå Žåã¯ããã®ããŒã«ã«æ £ããŠã ããã§äœæ¥ãéå§ããŠãã ãã ã
éçºãéå§ããåã«ãOfficeã¹ãã¢ã®ã¢ãã€ã³ããã®VBAã¢ãã€ã³ãšVSTOã¢ãã€ã³ã®ããã€ãã®éèŠãªéãã«ã泚æããå¿ èŠããããŸãã
- æåã®éãã¯ãVBAãŸãã¯VSTOã§ã¢ããªã³ãéçºãããšãã«ãå€ãã®æ©èœãå«ããããããããã±ãŒãžã補åãäœæã§ããããšã§ãã XLToolsã¯çŽ æŽãããäŸã§ããã¢ãã€ã³ã«ã¯ãã»ã«ãããŒãã«ãåãªã©ãæäœããããã®å€ãã®ãªãã·ã§ã³ãå«ãŸããŠããŸãã Officeã¹ãã¢çšã®ã¢ãã€ã³ãéçºããå Žåããã®ã¢ãããŒããå¿ããå¿ èŠããããŸãã éçºãèšç»ãããšãã¯ããšã³ããŠãŒã¶ãŒã«æäŸããããä»ã®æ©èœããåé¢ãããå®å šãªçš®é¡ãèããå¿ èŠããããŸãã XLToolsã®å Žåãå ã 1ã€ã®ã¢ããªã³ã«å®è£ ãããŠããæ©èœã¯ãOfficeã¹ãã¢ã®5ã€ã®åå¥ã®ã¢ããªã±ãŒã·ã§ã³ã§è¡šãããŸãã ãã®ã¢ãããŒãã«ãããã¿ãŒã²ãããçµã蟌ãã§ææ決å®ãçµã蟌ã¿ãã¿ãŒã²ãããŠãŒã¶ãŒã«ããã¢ããªã³ã®ããŠã³ããŒãæ°ãå¢ããããšãã§ããŸãã
- 2çªç®ã®éãã¯ãJavaScript APIãšVSTO / VBA APIã®éãã§ãã JavaScript APIãæäŸããæ©èœã詳现ã«èª¿ã¹ã䟡å€ããããŸãã ãããè¡ãã«ã¯ãMicrosoft ãã¥ãŒããªã¢ã«ïŒã¿ã¹ã¯ãã€ã³ïŒããã³Microsoft ãã¥ãŒããªã¢ã«ïŒã³ã³ãã³ãïŒAPIã¢ããªã±ãŒã·ã§ã³ã䜿çšããããšããå§ãããŸãã
Visual StudioãšJavaScript APIã䜿çšããExcelã¢ãã€ã³éçº
æ¢å®ã§ã¯ãVisual Studioã«ã¯ãOfficeã¹ãã¢ã®ã¢ãã€ã³ãéçºããããã®å®çŸ©æžã¿ã®ãããžã§ã¯ããã³ãã¬ãŒãããããããæ°ãããããžã§ã¯ãã®äœæã«ã¯æåéãæ°ç§ããããŸãã
ãããžã§ã¯ãèªäœã¯ããããã§ã¹ããã¡ã€ã«ãšWebãµã€ãã§æ§æãããŠããŸãã ãããã§ã¹ããã¡ã€ã«ã¯æ¬¡ã®ããã«ãªããŸãã
<?xml version="1.0" encoding="UTF-8"?> <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp"> <Id>11111111-1111-1111-1111-111111111111</Id> <Version>1.0.1</Version> <ProviderName>WavePoint Co. Ltd.</ProviderName> <DefaultLocale>en-US</DefaultLocale> <DisplayName DefaultValue="XLTools.net Data Cleaning for Excel" /> <Description DefaultValue=" Clean bulk data fast: remove extra spaces, change text case, convert text format to numbers, etc."/> <IconUrl DefaultValue="~remoteAppUrl/App/DataCleansing/Images/Logo32.png"></IconUrl> <SupportUrl DefaultValue="http://xltools.net/excel-apps/data-cleaning-app/"></SupportUrl> <Capabilities> <Capability Name="Workbook" /> </Capabilities> <DefaultSettings> <SourceLocation DefaultValue="~remoteAppUrl/App/DataCleansing/Home.html" /> </DefaultSettings> <Permissions>ReadWriteDocument</Permissions> </OfficeApp>
ãã®ãã¡ã€ã«ã§æ³šæãã¹ãäž»ãªãã®ã¯æ¬¡ã®ãšããã§ãã
- Id-ã¢ããªã±ãŒã·ã§ã³ããšã«äžæã§ããå¿ èŠããããŸãã
- ããŒãžã§ã³ -ã¢ãã€ã³ãã»ã©ãŒããã·ã¥ããŒã ïŒOfficeã¹ãã¢ã§å ¬éããããã¹ãŠã®ã¢ããªã³ã管çãããã³ããŒ/éçºè ã®å人ã¢ã«ãŠã³ãïŒããå ¬éããããšãã«æå®ãããããŒãžã§ã³ãšäžèŽããå¿ èŠããããŸãã
- IconUrlããã³SupportUrl-ãªã³ã¯ãæ©èœããã¢ãã€ã³æ©èœã®èª¬æãå«ãããŽç»åãšããŒãžã®å Žæã瀺ãå¿ èŠããããŸãã ãªã³ã¯ãæ£ãããªãå Žåããããã§ã¹ãã¯ã»ã©ãŒããã·ã¥ããŒããä»ããŠå ¬éãããšãã«æ€èšŒã«åæ ŒããŸããã
- æš©é -ã¢ãã€ã³ã®ããã¥ã¡ã³ãããŒã¿ãžã®ã¢ã¯ã»ã¹ã¬ãã«ãå®çŸ©ããŸãã RestrictedãRead documentãRead all documentãWrite documentãRead write documentãªã©ã®å€ããšãããšãã§ããŸãã
- SourceLocation -Webãµã€ãäžã®ã¢ããªã±ãŒã·ã§ã³ã®ãããŒã ãããŒãžãžã®ãã¹ã
Webãµã€ãã¯ãã¢ããªã±ãŒã·ã§ã³ãåäœããããã«å¿ èŠãªHTMLãJavaScriptãããã³CSSãã¡ã€ã«ã®æå°ã»ããã§æ§æãããããã©ã«ãã§ã¯ãæ°ãããœãªã¥ãŒã·ã§ã³ã®UIãæ§ç¯ã§ããåºæ¬UIãæäŸããŸãã ãµã€ãã®èŠä»¶ã®1ã€ãHTTPSã§æ©èœããŠããããšã¯æ³šç®ã«å€ããŸã ã ã€ãŸããç¬èªã®ãµãŒããŒãŸãã¯ç¬èªã®ãã¡ã€ã³ã§ãµã€ããå ¬éããå Žåã¯ãSSL蚌ææžãå¿ èŠã§ãã ããšãã°ãAzure Webãµã€ãã䜿çšããå Žåã¯ããã®åé¡ãåé¿ã§ããŸãã azurewebsites.netãµããã¡ã€ã³ã«å±éããããã¹ãŠã®ãµã€ãã¯ãHTTPãšHTTPSã®äž¡æ¹ã䜿çšããŠããã©ã«ãã§ã¢ã¯ã»ã¹ã§ããŸãã
JavaScript APIã¯ãExcelããŒã¿ãšå¯Ÿè©±ããããã®ã¡ãœããã®æšæºã»ãããæäŸããŸãã XLTools.net Data Cleanupã¢ãã€ã³ã®éçºæã«äœ¿çšãããã®ã®ãã¡ãããäžéšã®äœ¿çšäŸã瀺ããŸãã
- Excelã§ãŠãŒã¶ãŒãéžæããã»ã«ç¯å²ã«ããã€ã³ãããè¿œå ããŠãããã«æäœããŸãã
Office.context.document.bindings.addFromPromptAsync(Office.BindingType.Matrix, { id: "RangeToClean" }, function (asyncResult) { if (asyncResult.status == "failed") { // Some specific code here } else { // Some specific code here } });
- 以åã«äœæãããããã€ã³ãã£ã³ã°ãã䜿çšããŠãã»ã«ç¯å²ããããŒã¿ãååŸããŸãã
Office.select("bindings#RangeToClean", onBindingNotFound).getDataAsync( {}, doDataCleaning );
- 以åã«äœæããããã€ã³ããã䜿çšããŠã»ã«ç¯å²ã®ããŒã¿ãæŽæ°ããŸãã
Office.select("bindings#RangeToClean").setDataAsync(range,function (asyncResult) { if (asyncResult.status == "failed") { // Some specific code here } else { app.showNotification(UIText.ExecutedSuccessfully, '', 'success'); } }).
JavaScript APIã¡ãœããã¯ãã¹ãŠååã«ææžåãããŠãã ããã®è©³çŽ°ãªèª¬æã¯MSDN Webãµã€ãã«ãããŸãã
ã·ããªãªã«å¿ããŠãããŒã¿åŠçã¯ã¯ã©ã€ã¢ã³ãäžã§çŽæ¥è¡ãããŸãã JavaScriptã³ãŒãå ããã³ãµãŒããŒäžã ãµãŒããŒäžã®ããŒã¿ãåŠçããããã«ãããšãã°Web APIã䜿çšããŠãå¿ èŠãªãµãŒãã¹ããµã€ãã«çŽæ¥è¿œå ã§ããŸãã ã¯ã©ã€ã¢ã³ãïŒã¢ãã€ã³ïŒã¯ã AJAXãªã¯ãšã¹ãã䜿çšããŠãä»ã®ãµã€ãã§äœ¿çšããã®ãšåãæ¹æ³ã§WebãµãŒãã¹ãšéä¿¡ããŸãã èæ ®ãã¹ãå¯äžã®ããšã¯ãå€éšãã¡ã€ã³ã«ãããµãŒãããŒãã£ã®ãµãŒãã¹ã䜿çšããå Žåãåãèµ·æºã®ããªã·ãŒã®åé¡ãå¿ ãçºçããããšã§ãã
ã¢ãã€ã³ãOfficeã¹ãã¢ã«å ¬éãã
Officeã¹ãã¢ã§ã¢ããªã³ãå ¬éããã«ã¯ã Microsoft Seller Dashboard Webãµã€ãã§ç»é²ããå¿ èŠããããŸã ã ç»é²åŸãå人ã¢ã«ãŠã³ãã«ã¢ã¯ã»ã¹ããã¢ããªã±ãŒã·ã§ã³ã®ãããã§ã¹ããããŠã³ããŒãããŠãå¿ èŠãªæ å ±ããã¹ãŠèšå ¥ã§ããŸãã å人çãªçµéšã«åºã¥ããŠãæ¿èªã®ããã«ã¢ããªã±ãŒã·ã§ã³ãéä¿¡ããåŸã®ã¢ããªã±ãŒã·ã§ã³ã®ãã§ãã¯ã«ã¯ãéåžž1ã3å¶æ¥æ¥ããããŸãã Microsoftãã¢ããªã±ãŒã·ã§ã³ããã¹ãããŠæ¿èªããåŸãOfficeã¹ãã¢ãéããŠäžçäžã®äœçŸäžäººãã®ãŠãŒã¶ãŒãããŠã³ããŒãã§ããããã«ãªããŸãã
çµè«
çµè«ãšããŠãXLToolsã¢ããªã³ã¯ãVBA / VSTOãã¯ãããžãŒã«åºã¥ãæ¢åã®ãœãªã¥ãŒã·ã§ã³ãOffice 365ã®ã¯ãã¹ãã©ãããã©ãŒã ãœãªã¥ãŒã·ã§ã³ã«å€æããæ¹æ³ã®åªããäŸã§ãããšèšã£ãŠãã䟡å€ããããŸãã 6ã€ã®åå¥ã®ã¢ããªã±ãŒã·ã§ã³ãå®è£ ããŸãã
çŸåšããããã¯ãã¹ãŠOfficeã¹ãã¢ããããŠã³ããŒãã§ããŸãã
- XLTools.net SQLã¯ãšãª-ExcelããŒãã«ã®ããŒã¿ã«å¯ŸããSQLã¯ãšãªã®å®è¡ã
- XLTools.net ExcelçšCSVãšã¯ã¹ããŒã -ç®çã®åºåãæåïŒã«ã³ããã»ãã³ãã³ããŸãã¯ã¿ãïŒãå«ãCSVãã¡ã€ã«ãšããŠExcelã§ããŒãã«ãä¿åã§ããŸãã
- XLTools.netããŒã¿ã¯ãªãŒãã³ã°- ããŒã¿ã¢ã¬ã€ã¯ãªãŒãã³ã°ïŒã¹ããŒã¹ã®åé€ãããã¹ãã®å€§æåå°æåã®å€æŽãããã¹ãã®æ°åãžã®å€æãªã©ã
- XLTools.net Excelçšã¢ã³ããããããŒãã«-ExcelãŠãŒã¶ãŒãè€éãª2次å ããŒãã«ããã©ãããã¥ãŒã«å€æããã®ã«åœ¹ç«ã¡ãŸãã
- XLTools.net SendGridã¬ããŒã-SendGridã¢ã«ãŠã³ãããExcelã«é ä¿¡ã¬ããŒããããŠã³ããŒãããŸãã
- XLTools.netåã®äžèŽ -åã®æ¯èŒãåãããŒã¿ãæã€åã®æ€çŽ¢ãåã§äžèŽããããŒã¿ã®å²åã®èšç®ã
ãŸããéåžžã®ã·ããªãªã«å ããŠãOfficeã¹ãã¢ãšOffice 365ã®åºçŸã«ãããéçºè ãšããŠã Office 365 APIã䜿çšããŠæ¡åŒµæ©èœãéçºããæ°ããæ©äŒããããŸã ãããã«ããã ã¡ãŒã« ã ã«ã¬ã³ã㌠ã SharePoint Online ã OneDrive for Businessãªã© ãããã®æ©äŒãå©çšããŠææ¥äœãæ§ç¯ã§ãããã誰ãç¥ã£ãŠããŸããã æéãçµãŠã°ãããïŒ
èè ã«ã€ããŠ
Petr Lyapin-Wave Point LLCã®ãã¯ãã«ã«ãã£ã¬ã¯ã¿ãŒ
èªååãããžã§ã¯ãã®å®è£ ã§10幎以äžã®çµéš
ããžãã¹ããã»ã¹ã 圌ã¯å€ãã®ãã·ã¢äººãšåãã
å€åœäŒæ¥ã XLTools.netãããžã§ã¯ãã®åµèšè ã