ä»åã¯ãå¯è¦ã»ã«ã®ã¿ãåå¾ããSpecialCells(xlCellTypeVisible)ã¡ã½ãã使ç¨æã®ãã°ã¨ããã¯ã®åé¿æ¹æ³ã«ã¤ãã¦èãã¦ã¿ããã¨æãã¾ãã VBAçã§ã¯æåï¼ãªã®ãã©ããåããã¾ããããé表示ã®è¡ã¾ãã¯åãã·ã¼ãå ã«1以ä¸ããç¶æ ã§ãåä¸ã»ã«å¯¾ãã¦Speâ¦
ä»åã¯ãªã¼ããã£ã«ã¿ã§çµãè¾¼ãã§ããå°å·ãããã¨ããä½æ¥ãèªååãã¦ã¿ããã¨æãã¾ãããããªã¤ã¡ã¼ã¸ã ãã®è¡¨ã®ååã®åã§ã "ãã¼ã·ã§ã³"ã§çµã込㿠å°å· "éã®é"ã§çµã込㿠å°å· "ãã§ããã¯ã¹ã®å°¾"ã§çµã込㿠å°å· "ã¨ãªã¯ãµã¼"ã§çµã込㿠å°å· â¦
ä»åã¯æå®æååã®å·¦å´ã¾ãã¯å³å´ãåãåºãã³ã¼ããèãã¦ã¿ããã¨æãã¾ããä¾ãã°ãæ°åãããã¹ãã¼ã¹ãå¢ã«ãã¦å§ã¨åãåãåºããã・・・・・・ãã¨ãããã ããããªã®ã¯æ¢ã«ä¸ã®ä¸ã«ããæ°ãããã®ã§ãããããåæ©é²ãã å¦çãèãã¦ã¿ããã¨æãã¾ãã â¦
ã¨ã¯ã»ã«ã使ç¨ãã¦ããã¨ãè¡ã®é«ããåã®å¹ ãã³ãã¼ãã¦ä»ã®è¡ã»åã«é©ç¨ãããã¨ããããã¾ãããããªã¨ãã¯ã©ãããã°ããã§ããããï¼ ç®æ¬¡ å½¢å¼ãé¸æãã¦è²¼ãä»ãããæ¹æ³ é«ããå¹ ã確èªãã¦ãããä»ã®è¡ã»åã«è¨å®ããæ¹æ³ ãã¯ãã§é©ç¨ããæ¹æ³ å½¢â¦
ååã¯è¤æ°ã®æåã®è²ã§ããããä»åã¯è¤æ°ã®ã»ã«ã®è²ã§ãã£ã«ã¿ãªã³ã°ãã¦ã¿ã¾ããããå 容ã¯ä¸é¨ãååã¨éè¤ãã¾ãã®ã§ãäºæ¿ãã ããã kouten0430.hatenablog.com ã¨ã¯ã»ã«ã®ãªã¼ããã£ã«ã¿ã¼ã¯ã»ã«ã®è²ã§ãã£ã«ã¿ã¼ãããããã¨ãã§ãã¾ãããè²ã¯ä¸ã¤â¦
ã¨ã¯ã»ã«ã®ãªã¼ããã£ã«ã¿ã¼ã¯æåã®è²ã§ãã£ã«ã¿ã¼ãããããã¨ãã§ãã¾ãããè²ã¯ä¸ã¤ããæå®ã§ãã¾ãããã¾ããè¤æ°ã®ã»ã«ãé¸ãã§å³ã¯ãªãã¯ããããã£ã«ã¿ã¼ãâãé¸æããã»ã«ã®ãã©ã³ãè²ã§ãã£ã«ã¿ã¼ãããããã¨ãã¦ããè¤æ°ã®é¸æç¯å²ã«å¯¾ãã¦ã¯å®â¦
ä»åã¯é£æ¥ããã»ã«ã®ãã¼ã¿ãåãã§ããã°ãã»ã«çµåãããã¨ããã³ã¼ããä½ã£ã¦ã¿ããã¨æãã¾ãã ãããã ãã»ã«çµåã¯ãªãã¹ãé¿ããã¹ãã ãããã«ã»ã«çµåããããæ°ã¯æ» ãã§ã»ããã ãæåãããã®æ©è½ãç¡ããã°ããã£ãã ã¨ããããããªå£°ããâ¦
ä»åã¯æååã®éä¸ï¼ãããã¯å é ãæ«å°¾ï¼ã«åå¨ããæ°åã«ãæå®å¤ãå æ¸ç®ããã¦ã¿ããã¨æãã¾ãããã§ãã¤ãã§ã«æå®å¤ã§ã¤ã³ã¯ãªã¡ã³ãã»ãã¯ãªã¡ã³ããªããããããããå¦çã®ã¤ã¡ã¼ã¸ã¯ãããªã®ã 欲ãè¨ãã°ãå ¨è§æ°åã§ãå¦çã§ããããã«ããããâ¦
ä»åã¯ãã¯ã¤ãã¯ã¢ã¯ã»ã¹ãã¼ã«ãã¼ã®ãã¿ã³ãç¹å®ã®ããã¯ã®ã¿ã«ç»é²ããæ¹æ³ãç´¹ä»ãã¾ããããæ¹ã¯ã¨ã¦ãç°¡åã以ä¸ã®ã¨ããã§ãã ãã¡ã¤ã«ï¼ãªãã·ã§ã³ï¼ã¯ã¤ãã¯ã¢ã¯ã»ã¹ãã¼ã«ãã¼ãé¸æ ã¯ã¤ãã¯ã¢ã¯ã»ã¹ãã¼ã«ãã¼ã®ã¦ã¼ã¶ã¼è¨å®ãããã¹ã¦ã®ããâ¦
ä»åã¯ãã¨ã¯ã»ã«ã®ã·ã¼ãä¸ã«ã»ã«ã®èæ¯è²ã使ã£ã¦ããããããç»åãæç»ãã¦ã¿ããã¨æãã¾ããæä½æ¥ã§1ã»ã«ãã¤ã¡ã¾ã¡ã¾ã¨ï½¥ï½¥ï½¥ï½¥ï½¥ï½¥ã§ã¯ãªãVBAã§ãã§ããä½æ ãããããããã¨æã£ãã®ãã¯èªåã§ãè¬ã§ãã ã§ã¯ããã£ã¦ã¿ã¾ãããï¼ ãããããããã¡ã¤â¦
ä»åã¯VBAã使ã£ã¦ãã¨ã¯ã»ã«ã«å ¥åãããæååã®ãã¡ãã«ã¿ã«ãï¼ã¾ãã¯æ°åã»è±åã»è¨å·ï¼ã®ã¿ãå ¨è§ï¼ã¾ãã¯åè§ï¼ã«ãã¦ã¿ããã¨æãã¾ãããããã©ããªæã«å½¹ç«ã¤ãã¨ããã¨ï½¥ï½¥ï½¥ï½¥ï½¥ï½¥ãã«ã¿ã«ããè±åãæ°åãè¨å·ã®ã¿ãåè§å ¨è§ã«ãããæã§ã(*ï½ã»Ïã»)â¦
ç§äºã§ãããè¿ããã¡ã«ä»ã®ä½å± ãé¢ãã¦ãä¼ç¤¾ã®æ½è¨ã«å ¥ããªããã°ãªããªãå¯è½æ§ãåºã¦ãã¦ãã¾ãã¾ãããã§ãä»ãæ°ã«ãªã£ã¦ããã®ãä¼ç¤¾æ½è¨ã§ã®ã¤ã³ã¿ã¼ãããã®å©ç¨ã«ã¤ãã¦ãèªç±ã«ä½¿ããåç·ãããã®ããå人ã§æé ããå¿ è¦ãããã®ãåãããªãã®â¦
å æ¥ãæ°ããï¼°ï¼£ãè³¼å ¥ããã®ã§æ§ï¼°ï¼£ããExcel.officeUIã¨å人ç¨ãã¯ãããã¯ã移æ¤ãã¾ãããããããã«é¢é£ãã¦çºçããã¨ã©ã¼ã«ã¤ãã¦åå ã¨å¯¾å¦æ³ãã¡ã¢ãã¦ããã¾ãã ãã®åã«ãofficeUIã¨ã¯ãªãã³ãã¯ã¤ãã¯ã¢ã¯ã»ã¹ãã¼ã«ãã¼ã®ã¦ã¼ã¶ã¼è¨å®ãè¨é²â¦
使ç¨ãã¦ããPCã8年以ä¸çµéãããã¤ä¸å ·åãèµ·ããã¦ããããããªãé åãªã®ã§ãããããæ°ããã®ãè³¼å ¥ãããã¨æãã¾ããã¤ãã§ã«ãããã調ã¹ããã¨ãã¡ã¢ãã¦ããã¾ãã ï¼æ³¨ï¼ä¸»ã«CPUé¢é£ã§ãï¼ ç®æ¬¡ x86ç³»CPUã®è£½å群ã年代é ã«ä¸¦ã¹ã¦ã¿ã ãã¤ã¯ãâ¦
ååã¯ããã«ããã¬ã¯ãµã«ç¹ããï¼ã¤ã®é ç·ããï¼ãããã®ãªãã³ã¼ãã¨ãã©ã°ã§ã©ããã£ã¦æãã®ï¼ã£ã¦ã¨ããã§çµããã¾ããã ãã®ï¼ã®é¨åã«ã¯ãä»»æã®ãªãã³ã¼ãã¨ãã©ã°ãå ¥åãããã°ãããã解èªãã¦å¿ è¦ãªä¿¡å·ãåºåããè£ ç½®ãå ¥ããå¿ è¦ãããã¾ããâ¦
ååã¾ã§ã®è¨äºã«ç»å ´ããã¢ãããã¹ã¦ç¹ãã§ï¼£ï¼°ï¼µã®å½¢ã«ãã¦ããããã¨æãã¾ããããããã¬ã¸ã¹ã¿ã¨ã¯ããã¯ãã®åã§ãæ¸ããããã«ããã åç´ã«ç¹ãã ãã§ã¯åè·¯ãåºå®ã§ãããå¦çå 容ãæ°¸é ã«åããã®ã«ãªã£ã¦ãã¾ãã¾ããå½ä»¤ã«ãã£ã¦åè·¯ãåãæ¿ãâ¦
ä»åã¯ãããã°ã©ã ã«ã¦ã³ã¿ãåä½ããæ§åãè¦ã¦ã¿ã¾ããããããã°ã©ã ã«ã¦ã³ã¿ã®ãä»äºã¯ãå®è¡ãã¹ãããã°ã©ã ãæ ¼ç´ããã¦ããã¡ã¢ãªã¢ãã¬ã¹ãæã示ããã¨ã§ããããå°ãå ·ä½çã«ããã¨ãããã°ã©ã ã®éå§ä½ç½®ã¨ãªãã¢ãã¬ã¹ããå§ã¾ããã¯ããã¯ã«â¦
ååã¾ã§ã«ãã¬ã¸ã¹ã¿ãã¨ããåèªãä½åãåºã¦ãã¾ããããã¬ã¸ã¹ã¿ãä½è ãªã®ãã«ã¤ãã¦ã¯ã»ã¨ãã©æ¸ãã¦ããªãã£ãã®ã§ããããã§æ¸ãã¦ãããã¨æãã¾ãã ãªãCPUã®ä¸ã«ã¬ã¸ã¹ã¿ãå¿ è¦ãªã®ãï¼ ï¼£ï¼°ï¼µã®ä¸ã«ã¯ãã¼ã¿ãä¸æ¦ä¿æããããã®ã¬ã¸ã¹ã¿ãâ¦
ä»åã¯ãCPUã«å¯¾ãã¦ã®å½ä»¤ãã©ã®ããã«è¡ãããã®ãè¦ã¦ã¿ã¾ãããã ã¢ã»ã³ããªè¨èªã¨ã¯ï¼ çãããåç¥ã®ã¨ããã³ã³ãã¥ã¼ã¿ã¼ã®ä¸ã§æ å ±ã¯ãï¼ã¨ï¼ã§è¡¨ããã¾ããï¼ã¨ï¼ã§è¡¨ç¾ãããããã°ã©ã ã¯æ©æ¢°èªã¨å¼ã°ãã¾ããããããå½ä»¤ã®å 容ãï¼ã¨ï¼ã®ç¾ â¦
ä»åã¯ãæ å ±ãã©ã®ããã«ãã¦è¨æ¶ï¼ã¡ã¢ãªã¼ï¼ããã¦ããã®ãã調ã¹ã¦ã¿ããã¨æãã¾ããçãããåç¥ã®ã¨ããã³ã³ãã¥ã¼ã¿ã¼ã®ä¸ã§æ å ±ã¯ãï¼ã¨ï¼ã§è¡¨ããã¾ããã³ã³ãã¥ã¼ã¿ã¼ã¯é»æ°åè·¯ãªã®ã§ãé»å§ãä½ãç¶æ ãï¼ãé»å§ãé«ãç¶æ ãï¼ã¨ãã¦ãã¾ãï¼åâ¦
ååã¯ãã©ã³ã¸ã¹ã¿ãå©ç¨ããåºæ¬çãªè«çã²ã¼ãã§ããANDãORãNOTã®ä½ãæ¹ãç´¹ä»ãã¾ãããä»åã¯ããã®è«çã²ã¼ããããã«çµã¿åããã¦å ç®å¨ãªããã®ãä½ã£ã¦ã¿ã¾ããããå°é家ã®æ¹ã«ã¯åæ©çéããããããã¾ãããããã®ãããã¯ã容赦ä¸ãâ¦
ã©ããªé«æ°´æºããã°ã©ãã³ã°è¨èªã§æ¸ãããããã°ã©ã ã§ãã£ã¦ãæçµçã«ã¯æ©æ¢°èªã«å¤æãããé»æ°ä¿¡å·ã¨ãªã£ã¦ï¼£ï¼°ï¼µã§å¦çããã¾ããCPUã®ä¸ã§ã¯ã¬ã¸ã¹ã¿ãALUãªã©ãé»æ°ä¿¡å·ãå¦çãã¾ããããããã¬ã¸ã¹ã¿ãALUã¯ããããä½ã§æ§æããã¦ãããã§ããâ¦
ä»åã¯ä»¥ä¸ã®è¨äºã®ç¶ãã§ãã kouten0430.hatenablog.com Option Compare Textã宣è¨ãã¦æååæ¯è¼ãè¡ã£ãå ´åãæåã³ã¼ããåããã®ä»¥å¤ã«ã©ããªæååãé¡ç¸ã®æåã¨ãã¦ãããããã®ã・・・・・・ãååã¯æ¯è¼ãµã³ãã«ãå°ãªãä¸ååã ã£ãã®ã§ãä»åã¯æâ¦
注ï¼ä»åã®ã話㯠VBA ã«ãã£ãããã®ã¾ã¾é©ç¨ã§ããããããã¾ãããä¸è¬çãªã話ã¨ãã¦èªãã§ããã ããã°å¬ããã§ãã ååãã¡ã¢ãªå é¨ãããªãã¸ã§ã¯ããã¨ã ã表ç¾ãã¾ããããã£ãããªã®ã§ã¡ã¢ãªå é¨ãããå°ãæ¡å¤§ãã¦è¦³å¯ãããã¨æãã¾ãã ã¡ã¢ãªâ¦
ã¯ã©ã¹ãå®ä½åãããã¨ã®æ¯å©ã¨ãã¦ããããç¼ãã®åãã¨ãããç¼ããã®è©±ããã°ãã°ç¨ãããã¾ããããããã®æ¯å©ã§ããªãã»ã©ï¼ããã ã£ãã®ããã¨ä¸çºã§ç解ã§ãã人ã¯ä½äººããã®ã§ããããï¼åãéãããè²ã ãªè§åº¦ããèããå·¡ããã¦ç解ã«è³ã£ã人ãâ¦
ãVBAã§ãéããã¾ã¾ã®ããã¯ãããã¼ã¿ã転è¨ããæ¹æ³ã¯ç¡ããã«ãã¼ãã¨æã£ã¦ãã人ã®ããã«ãä»å㯠ExecuteExcel4Macro ã¡ã½ãããç´¹ä»ãã¾ãã ExecuteExcel4Macroï¼ ããã¯ä½ãã®æå 端æè¡ã§ããï¼ ãããéãã¾ãã æ°ãããã¼ã¸ã§ã³ã® Excel ã§ã â¦
VBAã§ã¯æååãã¼ã¿ã®æ¯è¼æ¹æ³ã以ä¸ã® Option Compare ã¹ãã¼ãã¡ã³ãã§å®£è¨ãããã¨ãã§ãã¾ãã Option Compare Binaryï¼åã¯çç¥ï¼ åæååã®æåã³ã¼ãæ°å¤ãæ¯è¼ããã¾ãã Option Compare Text ã·ã¹ãã ã®ãã±ã¼ã«ã«ãã£ã¦æ±ºå®ãããèªå½çæå³ã«åºâ¦
VBA ã§ã¯RegExpã¯ã©ã¹ãå©ç¨ããã°æ£è¦è¡¨ç¾ã使ç¨ãããã¨ãã§ãã¾ããããããã¾ã§ããªãã¨ã Likeæ¼ç®åã使ã£ã¦æ£è¦è¡¨ç¾ã®ãããªãã¿ã¼ã³ãããã³ã°ããããã¨ãã§ãã¾ãã è¦ãããã¨ãå°ãªãã®ã§åå¿è ã«ã¯ãªã¹ã¹ã¡ã§ãããçµã¿åãã次第ã§ã¯ãããªãâ¦
ä»å㯠Word ã® Range ã«ã¤ãã¦ã§ãã ååãåãã§ç¨éãä¼¼ã¦ãã¾ãããExcelã® Range ã¨ã¯ããã°ã©ã ä¸ã¾ã£ããã®å¥ç©ã§ãã Range ã®å¼æ°ã¯ã¯ã¤ãã¯ãã³ãã«è¡¨ç¤ºãããããã« Startï¼éå§æåä½ç½®Endï¼çµäºæåä½ç½® ã§æå®ãã¾ãã ä¸ã®ãµã³ãã«ã§å®éã«â¦
ä¹ ãã¶ãã«ã³ã¼ããæ¸ãã¨ãRangeã®å¼æ°ã§:ï¼ã³ãã³ï¼ã使ãã°è¯ãã®ã,ï¼ã«ã³ãï¼ã使ãã°è¯ãã®ãè¿·ã£ã¦ãã¾ãæãããã¾ã(ï¼ _ï¼ ;)ãªã®ã§ãèªåã®è³å æ´çã試ã¿ããã¨æãã¾ãã Rangeã®å¼æ°ã¯ Range(å¼æ°1,å¼æ°2) ã®ããã«2ã¤ã¾ã§æå®ãããã¨ãã§ãã¾â¦