ãµã¼ãã¹çµäºã®ãç¥ãã NAVERã¾ã¨ãã¯2020å¹´9æ30æ¥ããã¡ã¾ãã¦ãµã¼ãã¹çµäºãããã¾ããã ç´11å¹´éãNAVERã¾ã¨ãããå©ç¨ã»ãæ顧ããã ãèª ã«ãããã¨ããããã¾ããã
ã¯ããã« æ¬é£è¼ã§ã¯ãExcel VBA(Visual Basic for Applications)ã使ã£ã¦ã§ãããã¨ãããããã¯ãã¨ã«ç´¹ä»ãã¦ããã¾ããç¹ã«æè¿æ³¨ç®ããã¦ããæ§ã ãªWebãµã¼ãã¹ã«ã¤ãã¦ãWeb API(Application Programming Interface)ãçµç±ãã¦ãExcelããå©ç¨ããæ¹æ³ãå¤ãåãä¸ããäºå®ã§ãã 第1åã¯ã天æ°äºå ±ãåãä¸ãã¾ããå¤åãã®å¶æ¥ãå±å¤ã§ä½æ¥ããè·äººã客足ãäºæ¸¬ãã¦ååã»ç´ æã®ä»å ¥è¨ç»ãç«ã¦ãåºé·ãã¬ã¸ã£ã¼ãæ è¡ã大ç©ã®æ´æ¿¯ã大æé¤ãããã人ãªã©ã«ã¨ã£ã¦ããã®å ã®å¤©æ°ã¯æ°ã«ãªãã¾ããããããã§ãæ¥æ¬æ°è±¡åä¼ãæä¾ãããtenki RSSããµã¼ãã¹ã使ã£ã¦ãExcel VBAããåãã1é±éã®å¤©æ°äºå ±ãåå¾ããæ¹æ³ãç´¹ä»ãã¾ãã åä½ç¢ºèªã¯ãWindows 7ãExcel 2010ãVBA 7.0ã§è¡ã£ã¦ãã¾ãããä»åã®
ã¯ããã« ä»åã¯ãæ ªä¾¡ã®æ å ±ãåãä¸ãã¾ããæ ªä¸»ã«ã¨ã£ã¦ãæ ªä¾¡ã®å¤åã¯ãã¤ãæ°ã«ãªãã¾ããããããã§ãæ§ã ãªéèæ å ±ãã¾ã¨ãã¦æä¾ãã¦ãããMSNããã¼ãã®ãµã¤ããããæ ªå¼ã®éæãã¨ã«æ ªä¾¡ã®æ¨ç§»ãåå¾ããæ¹æ³ãç´¹ä»ãã¾ããåä½ç¢ºèªã¯ãWindows 7ãExcel 2010ãVBA 7.0ããã³Windows XPãExcel 2007ãVBA 6.5ã§è¡ã£ã¦ãã¾ãã Excel VBAã§Webãµã¼ãã¹ - 天æ°äºå ±ãåå¾ãã¦ã¿ãã å³1ï¼å®æãµã³ãã«ï¼ä¸ååï¼åå¾ããæ ªä¾¡ã®è©³ç´°ãªå¤ï¼ å³2ï¼å®æãµã³ãã«ï¼ä¸ååï¼åå¾ããæ ªä¾¡ããã£ã¼ãã§è¡¨ç¾ï¼ æé ã®æ¦è¦ 以ä¸ã®æé ã§ä½æãã¾ãã ï¼ï¼æ ªä¾¡ã®ãã¼ã¿ãåãè¾¼ãã¯ã¨ãªã¼ãã¼ãã«ã®ä½æ ï¼ï¼å¯¾è±¡éæãåãæ¿ããããã®æºå ï¼ï¼éæã®åãæ¿ãããã¼ã¿ã®åãè¾¼ã¿ãæ ªä¾¡ãã£ã¼ãä½æãå®ç¾ããVBAã®å®è£ ã¯ã¨ãªã¼ãã¼ãã«ã¨ã¯ãå¤é¨ã®ãã¼ã¿ãã¼ã¹
ã¯ããã« å³1ï¼å®æãµã³ãã« ä»åã¯ãã楽天Webãµã¼ãã¹ãã®æ¸ç±APIãå©ç¨ãã¦ãæ¸ç±æ å ±ãæ¤ç´¢ãã¦åå¾ããæ¹æ³ãç´¹ä»ãã¾ãããããã£ãæ¤ç´¢ã¯ãã©ã¦ã¶ã§ãã§ãã¾ãããWeb APIãå©ç¨ããã¨ããã£ã¨ããç´°ãããèªå好ã¿ã®æ¤ç´¢ãå¯è½ã«ãªãã¾ããæ¬ä¾ã§ã¯ãæ¸ç±ã®ã¿ã¤ãã«ãèè ãªã©ã«ããè¤åæ¤ç´¢ãããVBAãä½æãã¾ããåä½ç¢ºèªã¯ãWindows 7ãExcel 2010ãVBA 7.0ããã³Windows XPãExcel 2007ãVBA 6.5ã§è¡ã£ã¦ãã¾ãã Excel VBAã§Webãµã¼ãã¹ - 天æ°äºå ±ãåå¾ãã¦ã¿ãã Excel VBAã§Webãµã¼ãã¹ - MSNããã¼ããæ ªä¾¡ã®æ¨ç§»ãåå¾ããã 楽天ãããããã¼IDã®åå¾ æ¥½å¤©Webãµã¼ãã¹ã®APIãå©ç¨ããã«ã¯ãããããããã¼IDããå¿ è¦ã§ããã¾ãã以ä¸ã®URLã§æ¥½å¤©Webãµã¼ãã¹ã®ãµã¤ãã¸ã¢ã¯ã»ã¹ãã¾ãã 楽天Webãµã¼
ã¯ããã« ä»åã¯ãåç»ãµã¤ãã§æåãªãYouTubeããæä½ããããã®APIãå©ç¨ãã¾ããå ¥åãã¼ã¯ã¼ããããExcelã®VBAã§æ¤ç´¢çµæãªã¹ããä½æããæ¹æ³ãç´¹ä»ãã¾ããã¯ã¼ã¯ã·ã¼ãä¸ã®ä¸è¦§è¡¨ã«ã¾ã¨ãããã¨ã§ãç®çã®åç»ãæ¢ãããããªãã¾ãããã¡ãããã¿ã¤ãã«ãã¯ãªãã¯ããã¨ãå®éã®åç»ããã©ã¦ã¶ã§è¦ããã¾ãã åä½ç¢ºèªã¯ãWindows 7ãExcel 2010ãVBA 7.0ããã³Windows XPãExcel 2007ãVBA 6.5ã§è¡ã£ã¦ãã¾ãã å³1ï¼å®æãµã³ãã« Excel VBAã§Webãµã¼ãã¹ - 天æ°äºå ±ãåå¾ãã¦ã¿ãã Excel VBAã§Webãµã¼ãã¹ - MSNããã¼ããæ ªä¾¡ã®æ¨ç§»ãåå¾ããã Excel VBAã§Webãµã¼ãã¹ - Excelã§æ¸ç±æ å ±ãæ¤ç´¢ã»åå¾ãã¦ã¿ãã YouTube APIã«ããåç»ã®æ¤ç´¢ãªã¯ã¨ã¹ã æ¤ç´¢ãªã¯ã¨ã¹ãã¯ã次ã®URLã«
ã¯ããã« æè¿ã®Webãµã¼ãã¹ã§ã¯æ°ããèªè¨¼æ¹å¼ãOAuthããå¿ è¦ãªãã®ãå¢ãã¦ãã¾ããä»åããTwitterãã¿ã¼ã²ããã¨ãã¦OAuthèªè¨¼ãå©ç¨ããæ¹æ³ã説æãã¾ããåä½ç¢ºèªã¯ãWindows 7ãExcel 2010ãVBA 7.0ããã³Windows XPãExcel 2007ãVBA 6.5ã§è¡ã£ã¦ãã¾ãã å³1ï¼å®æãµã³ãã« Excel VBAã§Webãµã¼ãã¹ - 天æ°äºå ±ãåå¾ãã¦ã¿ãã Excel VBAã§Webãµã¼ãã¹ - MSNããã¼ããæ ªä¾¡ã®æ¨ç§»ãåå¾ããã Excel VBAã§Webãµã¼ãã¹ - Excelã§æ¸ç±æ å ±ãæ¤ç´¢ã»åå¾ãã¦ã¿ãã Excel VBAã§Webãµã¼ãã¹ - YouTube APIã§åç»ãæ¤ç´¢ããã OAuthèªè¨¼ã«ã¤ã㦠OAuthèªè¨¼ã¨ã¯å¤§éæã«è¨ãã¨ãããã¼ã¯ã³ãã¨å¼ã°ããéè¡æå½¢ã®ãããªãã®ã¨ããã·ã¼ã¯ã¬ãããã¨å¼ã°ããç§å¯éµã«ã
表è¨ç®ã½ããã®Excelã¯ãããã°ã©ãã³ã°è¨èªã®VBAï¼Visual Basic for Applicationsï¼ã使ãã¾ããé£è¼ãExcel/VBAã¯ãªããã¯ãä»æã®è¨ºæãã§ã¯ãVBAã使ãä¸ã§çããæ©ã¿ãçåããã¯ãªããã¯å½¢å¼ã§è§£èª¬ãã¦ãã¾ããããã§ã¯ãèªè ããç¹ã«å¥½è©ã ã£ã20ã®ãã¯ããã¯ãç´¹ä»ãã¾ãã ãªããè¨äºå ã®ãµã³ãã«ã³ã¼ããªã©ã¯ãè¨äºå ¬éå½æã®Excelã®ãã¼ã¸ã§ã³ã«å¯¾å¿ãã¦ãã¾ããExcelã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯ãå¿ ãããæå³éãã«åä½ããªãå¯è½æ§ãããã¾ããããããããäºæ¿ãã ããã
VBAã®ææ³ä¸è¦§ã§ããä»ã®è¨èªãããç¨åº¦ç¥ã£ã¦ãã人ã¯ãããèªãã°VBAã®åºç¤ããã¹ã¿ã¼ãã¦VBAãæ¸ããã¨ãã§ããããã«ãªã£ã¦ãã¾ããç°¡æãªãã¡ã¬ã³ã¹ã¨ãã¦ãå©ç¨ã§ããã¨æãã¾ãã®ã§ãããã¯è¶³ããªãã¨æããã®ãããã°æãã¦ãã ããã 1. åºç¤ Visual Basic Editorã®èµ·å VBAã¯Visual Basic Editorã§ç·¨éã»å®è¡ãã¾ããVisual Basic Editorã¯æ¬¡ã®ããã«èµ·åãã¾ãã ExcelãWordã®ã¡ãã¥ã¼ã§[ãã¼ã«]-[ãã¯ã]-[Visual Basic Editor]ãé¸æãã æ¨æºã¢ã¸ã¥ã¼ã«ã®è¿½å VBAã¯æ¨æºã¢ã¸ã¥ã¼ã«ã«è¨è¿°ãã¾ããæ¨æºã¢ã¸ã¥ã¼ã«ã¯æ¬¡ã®ããã«è¿½å ãã¾ãã Visual Basic Editorã®ã¡ãã¥ã¼ã§[æ¿å ¥]-[æ¨æºã¢ã¸ã¥ã¼ã«]ãé¸æããã å¤æ°å®£è¨ã®å¼·å¶ å¤æ°å®£è¨ãå¼·å¶ãããããã¢ã¸ã¥ã¼ã«ã®å é ã«å¿ ã以ä¸ã®è¡ãæ¸ã
Excelã«é¢ãããµã¤ããæ°ããä¸ããè¶ãããã ãã¦ã¾ãã¨ã«ãããã¨ããããã¾ãã ãã¡ãã¯ä»äºã«ãMicrosoft Excelããæ´»ç¨ãããã¨ããæ¹ãå¿æ´ãããµã¤ãã§ãã ä¸è¬äºåä½æ¥ã§ãããã°ã©ã éçºåéã§ããMicrosoft Excelã¯é常ã«å©ç¨é »åº¦ã®é«ãã½ããã§ãã Excelã¯ãã¯ã¼ããã½ããã®ãããªåãªãææ¸ä½æãã¼ã«ã§ã¯ãªããããã¼ã¿å¦çããè¡ãªããã¨ãã§ãããã£ã¨ã身è¿ãªãã¼ã«ã§ãã è±å¯ãªãã¼ã«ãè¨ç®å¼ããã¯ãçãæ´»ç¨ãã¦ä»äºã®åçåã»è¿ éåã»ç²¾åº¦åä¸ã«å½¹ç«ã¦ã¦ãããããã¨æãã¾ãã ãã®ããã«ãåã¸ã£ã³ã«ã§ç®çå¥ã®ã¯ã³ãã¤ã³ãéãã§ããã ãç¶²ç¾ ãããã¨ãã¦ãã¾ããããç¨åº¦Excelã®çµé¨ããã人ã§ããç®çãéå¼ãã«å©ç¨ãã¦ããã ãã¨é¢ç½ãå 容ãè¦ã¤ããã¨æãã¾ãã ã¾ããããã¦ã³ãã¼ããã³ã¼ãã¼ã«ã¯ãExcelãã¤ã³ã¹ãã¼ã«ããã¦ããªãç°å¢ã§ãå©ç¨ã§ããããªã¼ã½ã
ã¨ã¯ã»ã«é¢æ°ãã¯ã¼ãåºç¤ããããªã¼ãã·ã§ã¤ãç»åºæ¬è¬åº§ã¾ã§ã å¤æ°ã®ç»åã¨ç´°ããªæé 説æããµã³ãã«ãã¡ã¤ã«ã§å¦ç¿ã§ããã¢ã¼ã°å¦ç¿å®¤ã å®éã«æä½ãè¡ããªãã確å®ã«ç解ãã¦ãããã¨ãã§ãã¾ãï¼ * è¬åº§ãç´¹ä»ããæ©è½ã«ãããµã³ãã«ãã¡ã¤ã«ããªãå ´åãããã¾ã Excel åºç¤ 1ã¬ãã¹ã³ãçæéã§çµäºããã®ã§ãæéããªãæã«å°ããã¤ã§ãåå¼·ã§ãã¾ãã èªåã®äºå®ã«ãããã¦å¦ç¿ãã¦ã¿ã¾ãããï¼ï¼å ¨9å 64ã¬ãã¹ã³æ²è¼ ï¼ Word åºç¤ 1ã¬ãã¹ã³ãçæéã§çµäºããã®ã§ãæéããªãæã«å°ããã¤ã§ãåå¼·ã§ãã¾ãã èªåã®äºå®ã«ãããã¦å¦ç¿ãã¦ã¿ã¾ãããï¼ï¼å ¨7å 67ã¬ãã¹ã³æ²è¼ï¼ Excel é¢æ° Excelã«ã¯ä¾¿å©ãªé¢æ°ãå¤æ°ç¨æããã¦ãã¾ãã é¢æ°ã®ä¾¿å©ãªä½¿ãæ¹ã解説ãã¾ãï¼ ï¼å ¨11åï¼ ä»äºã«å½¹ç«ã¤ Excel é¢æ° æ®æ®µä½¿ç¨ãã¦ããé¢æ°ãå¥ã®ä½¿ãæ¹ãã§ããï¼ï¼ ãä»äºã«å½¹ç«ã¤ Ex
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ã¯ã¬ã¸ããã«ã¼ãç¾éåã®é«éå çã®åªè¯åºãé¸ã¶ããã«ã¯ ã¯ã¬ã¸ããã«ã¼ãç¾éåã®åªè¯åºãé¸ã¶ãã¤ã³ãã¯ãæéçãã¹ãã¼ããããã¾ããããã®ã»ãã«ãè¦ã¦ãããããã¤ã³ããããã¾ãã ãéã«å³ãã人ãå©ç¨ãã¾ãã®ã§ãææ°æããã£ã³ãã¼ã³ã®æç¡ãä¾¡æ ¼äº¤æ¸ãã§ããæ¥è ã¨ãããã¨ã¯è¦ã¦ããããã¨ããã§ãã ããããã©ã®ãããªå 容ãªã®ã§ããããã ææ°æãç¡æã§ããã¯ã¬ã¸ããã«ã¼ãç¾éåã®æ¥è ã«ã¯ãææ°æããã¹ã¦ç¡æã§ãã¦ãããã¨ãããããã¾ãã æ¥è ã«ãã£ã¦ã¯ãåç´ã«ææ°æã¨ããåç®ã§æ¥è å´ã®å©çãã¨ããã¦ããããæ¯è¾¼ææ°æãäºåææ°æã¨ããåç®ã§å°é¡ãªãããéãããããã¨ãããã¾ãã ãã£ããé«ãæéçãè¨è¼ããã¦ãã¦ããææ°æã®åãå·®ãå¼ããããã¨ã§ãæããããããªæ°æã¡ã«ãªã£ããå¾ããæ°ã¥ããã¨ãããã¾ãã ãããã®ææ°æã¯æåããå ¬å¼ãã¼ã ãã¼ã¸ã«è¨è¼ãããå ´åã¯äºæ¿ããããã§ç³ãè¾¼ã¿ãã§ã
6ãã¼ã¸ 6ãã¼ã¸ 3ãã¼ã¸ 6ãã¼ã¸ 9ãã¼ã¸ 7ãã¼ã¸ 11ãã¼ã¸ 2ãã¼ã¸ 2ãã¼ã¸ 3ãã¼ã¸ 4ãã¼ã¸ 2ãã¼ã¸
ã¯ããã«ãVisual Basicãç¬èªã®ã¯ã©ã¹ãä½æãã¦ä½¿ããããã«ãOfficeã«æè¼ããã¦ããVBAã§ãç¬èªã®ã¯ã©ã¹ãããã¸ã§ã¯ãã«çµã¿è¾¼ããã¨ãã§ãã¾ããä½æããã¯ã©ã¹ã¯ãåOfficeã¢ããªã±ã¼ã·ã§ã³ã§ãã¤ã³ãã¼ãããã¨ã¯ã¹ãã¼ãããã§ãããããæ±ç¨æ§ã®ããã¯ã©ã¹ã1ã¤ä½æããã°ä»ã®ã¢ããªã±ã¼ã·ã§ã³ã®VBAã§ãå©ç¨ã§ããããã«ãªãã¾ãããããã§ãæ¬ç¨¿ã§ã¯Excel 2003ã§å©ç¨ã§ããã¯ã©ã¹ãä½æããªãããVBAã§ã¯ã©ã¹ãä½ãæ¹æ³ãç´¹ä»ãã¾ãã対象èªè ãExcel VBAã使ã£ã¦ãã¯ãï¼ããã°ã©ã ï¼ãä½ã£ããã¨ã®ãã人ãVisual Basicã使ãã人ã対象ã§ããå¿ è¦ãªç°å¢ãExcel 2000ã2002ã2003ã使ç¨ã§ããç°å¢ãã¯ã©ã¹ã¯ä¾¿å©ãVBAã§ã¯ã©ã¹ãä½æããã¡ãªããã¯ãè¤éãªå¦çã1ã¤ã®ãªãã¸ã§ã¯ãã«ã¾ã¨ããããããã£ãã¡ã½ãããéãã¦ãã®æ©è½ãå¼ã³åºããããã©ã¡ã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}