Excel VBAã®åºç€ç¥èãšã»ãã¥ãªãã£èšå®
ç§ã¯Next.js
ãštailwindcss
ã䜿çšããããã³ããšã³ãéçºãè¡ã£ãŠããåå¿è
ã§ããæè¿ãä¹
ãã¶ãã«VBAã觊ãæ©äŒããããå€ãã®åºæ¬çãªèšå®ãæŠå¿µãæãåºãå¿
èŠããããŸãããä»ã®èšèªã®ç¥èãšæ··åããããå¿ããŠããéšåãå€ãã£ãããããã®æ©äŒã«åºç€ç¥èãæŽçããåå¿è
ã®æ¹ã
ã®åèã«ãªãã°ãšæããèšäºãšããŠãŸãšããããšã«ããŸããã
ãã®èšäºã¯ãExcel VBAã®é£èŒèšäºã®ç¬¬1åç®ã§ããä»åã¯ãVBAã®åºç€ç¥èãšã»ãã¥ãªãã£èšå®ã«çŠç¹ãåœãŠãŠããŸãããªããå
·äœçãªVBAã³ãŒãã®æžãæ¹ã«ã€ããŠã¯æ¬¡å以éã§è©³ãã解説ããŠããäºå®ã§ãããŸãã¯ãVBAã䜿çšããããã®åºç€ç¥èãšã»ãã¥ãªãã£ã«ã€ããŠè§£èª¬ããŸãã
- 第1å: Excel VBAã®åºç€ç¥èãšã»ãã¥ãªãã£èšå®ïŒæ¬èšäºïŒ
- 第2å: Excel VBAã®åºæ¬æäœãšãªããžã§ã¯ãã®ç解
- 第3å: Excel VBAã«ãããå€æ°ãšå®æ°ã®åºæ¬
- 第4å: Excel VBAã«ãããã·ãŒãæäœã®åºæ¬ãšãšã©ãŒåŠç
- 第5å: Excel VBAã«ãããæ¡ä»¶åå²
- 第6å: Excel VBAã«ãããç¹°ãè¿ãåŠçã®åºæ¬
- 第7å: Excel VBAã«ãããé åãšFor Eachã®æŽ»çš
- 第8å: Excel VBAã«ãããFormulaãšValueã®äœ¿ãåããšãŠãŒã¶ãŒå ¥åã®ååŸ
ç®æ¬¡
ã¯ããã«
ãã¯ããšã¯
VBAïŒVisual Basic for ApplicationsïŒãšã¯
ãã¯ããšVBAã®éã
VBEïŒVisual Basic EditorïŒãšã¯
VBAéçºç°å¢ã®æºå
VBEã®é
è²èšå®ãregãã¡ã€ã«ã§ããã¯ã¢ããã»åŸ©å
å®å
šãªãã¯ãå©çšæ³
ãŸãšã
ã¯ããã«
VBAïŒVisual Basic for ApplicationsïŒã¯ãOffice補åã§ã®èªååã¹ã¯ãªãããäœæããããã®åŒ·åãªããŒã«ã§ããç¹°ãè¿ãäœæ¥ãç
©éãªè»¢èšåŠçãªã©ãããŒã¿åŠçã®èªååã«åºã掻çšãããæ¥åå¹çã倧å¹
ã«åäžãããŠããŸãã
ããããVBAã®å©çšã«ã¯ã»ãã¥ãªãã£é¢ã®èæ
®ãäžå¯æ¬ ã§ããç¹ã«ãã¯ããæå¹ã«ããããšã«ãããŠã€ã«ã¹ææã®ãªã¹ã¯ã䌎ãå¯èœæ§ããããããé©åãªã»ãã¥ãªãã£èšå®ãè¡ãããšãéèŠã§ãã
ãã¯ããšã¯
ãã¯ãã¯ãOffice補åã«æšæºè£ åãããŠããæ©èœã§ãæ¥åžžçãªäœæ¥ãè€éãªåŠçãèªååããããã®åŒ·åãªæ©èœã§ããå ·äœçã«ã¯ãããŒã¿ã®å ¥åãå å·¥ãªã©ã®äžé£ã®æäœæé ãèšé²ãããã¿ã³äžã€ã§å®è¡ã§ããããã«ãããã®ã§ãã
ã»ãã¥ãªãã£äžã®æ³šæç¹
ã»ãã¥ãªãã£é¢ã§ã¯ããã¯ããæªçšããããªã¹ã¯ãååšããŸããæªæãæã£ã人ããŠã€ã«ã¹ãå«ãã ExcelããŒã¿ãªã©ãæçãªæ å ±ã®ããã«åœè£ ããã€ã³ã¿ãŒãããäžã«å ¬éããããšããããŸããæªæã®ãããŠãŒã¶ãŒãäœæãããã¯ããå®è¡ããŠããŸããšãæå³ããªãåäœãåŒãèµ·ããããŠã€ã«ã¹ææãæ å ±æŒæŽ©ãªã©ã®æ·±å»ãªäºæ ã«çºå±ããå¯èœæ§ããããŸãã
å®å šãªå©çšã®ããã«
ãã®ãããªãªã¹ã¯ã«å¯Ÿå¿ãããããMicrosoftã¯ä»¥äžã®å¯Ÿçãè¬ããŠããŸãã
- ããã©ã«ãã§ãã¯ããç¡å¹å
- ä¿¡é Œã§ããçºè¡å ã®æŠå¿µã®å°å ¥
- ã»ãã¥ãªãã£ã¬ãã«ã®æ®µéçãªèšå®ãªãã·ã§ã³
æšå¥šããã䜿çšæ¹æ³
ãã¯ããå®å šã«æŽ»çšããããã«ã¯ã以äžã®ååãå®ãããšãéèŠã§ãã
- ä¿¡é Œã§ããéä¿¡å ããã®ãã¯ãã®ã¿ãå®è¡
- 瀟å ã§æ¿èªããããã¯ãã®äœ¿çš
- äžæãªéä¿¡å ã®ãã¡ã€ã«ã§ã®ãã¯ãå®è¡ãé¿ãã
- å¿ èŠã«å¿ããŠããžã¿ã«çœ²åã®ç¢ºèª
ãã®ã»ãã¥ãªãã£æèãæã¡ãªãããã¯ãã掻çšããããšã§ãæ¥åå¹çã®åäžãšã»ãã¥ãªãã£ãªã¹ã¯ã®è»œæžãäž¡ç«ããããšãã§ããŸãã
VBAïŒVisual Basic for ApplicationsïŒãšã¯
Microsoft Office ã¢ããªã±ãŒã·ã§ã³ã«çµã¿èŸŒãŸããŠããããã°ã©ãã³ã°èšèªã§ããExcelãWordãPowerPoint ãªã©ã® Office ã¢ããªã±ãŒã·ã§ã³ãèªååããããã®ãã¯ãããæ©èœãæ¡åŒµããããã®ããŒã«ãéçºããããã«äœ¿çšãããŸãã
ãã¯ããäœæããããã®ããã°ã©ãã³ã°èšèªãšããèªèã§æ§ããŸããã
ååèªã®æå³ãç解ããããšã§ãVBAã®æ¬è³ªãããããŸãã
-
Visual Basic
- 1991幎ã«ãã€ã¯ããœãã瀟ã«ãã£ãŠéçºã»æäŸãããããã°ã©ãã³ã°èšèª
- Windowsã®æ©èœãå šè¬çã«å©çšå¯èœã ããå°çšã®éçºç°å¢ïŒVisual StudioçïŒãå¿ èŠ
-
for ApplicationsïŒã¢ããªã±ãŒã·ã§ã³ã®ããã®ïŒ
- Microsoft Office補åïŒExcel, Word, PowerPointãªã©ïŒå°çš
- ããããã®ã¢ããªã±ãŒã·ã§ã³ã®æ©èœãèªååã§ãã
ãã£ãããŸãšãããšãVBA 㯠VB ãç°¡ç¥åãããã®ã§ãããOfficeã¢ããªã±ãŒã·ã§ã³ã«ç¹åããããã°ã©ãã³ã°èšèªã§ãã
éãã®ãŸãšã
Visual Basic (VB) | Visual Basic for Applications (VBA) | |
---|---|---|
ç®ç | ç¬ç«ããã¢ããªã±ãŒã·ã§ã³ïŒã¹ã¿ã³ãã¢ãã³ã¢ããªã±ãŒã·ã§ã³ïŒã®éçº | Office ã¢ããªã±ãŒã·ã§ã³ã®èªååãæ©èœæ¡åŒµãªã© |
åäœç°å¢ | Windows | Office ã¢ããªã±ãŒã·ã§ã³ |
éçºèŠæš¡ | 倧èŠæš¡éçºã«ãå¯Ÿå¿ | æ¯èŒçå°èŠæš¡ãªéçº |
äž»ãªç¹åŸŽ
- Office補åã§äœ¿çšå¯èœãªããã°ã©ãã³ã°èšèª
- ãã¯ãã®èšé²ã»ç·šéãå¯èœ
- è±å¯ãªæ©èœãšã«ã¹ã¿ãã€ãºæ§
æåã«èŠãããVBAã®ã·ã§ãŒãã«ãã
- ãã¯ãã®å®è¡ïŒ
Alt + F8
- VBAã®ç·šéïŒVBEèµ·åïŒïŒ
Alt + F11
ãã¯ããšVBAã®éã
ããã¯ãããšãVBAãã¯æ··åãããã¡ã§ãããããããç°ãªããã®ãæããŸãã
ãã¯ã
- ãŠãŒã¶ãŒã®äžé£ã®æäœãèšé²ããèªååããããšãã§ãã
- èšé²ããããã¯ãã¯ç°¡åãªæäœã§å®è¡ã§ããããã°ã©ãã³ã°ã®ç¥èããªããŠã䜿çšã§ãã
- Officeã¢ããªã±ãŒã·ã§ã³ãèªååçããããã®ããŒã«
VBA
- ãã¯ããèšé²ããåŸããããç·šéã»ã«ã¹ã¿ãã€ãºããããšãã§ããããã°ã©ãã³ã°èšèª
- ãã¯ãèšé²ã®éçãè¶ ããããã«é«åºŠãªã«ã¹ã¿ãã€ãºãè¡ãããã«çšãã
- Excelã ãã§ãªããWordãAccessãªã©ä»ã®Officeã¢ããªã±ãŒã·ã§ã³ã§ã䜿çšå¯èœ
ãŠãŒã¶ãŒãExcelã§ãã¯ããèšé²ãããšããã®è£åŽã§ã¯VBAã³ãŒããçæãããŠããŸããç°¡åãªã¿ã¹ã¯ã§ããã°ããã¯ãã ãã§ååã§ãããè€éãªæ¡ä»¶åå²ãç¹°ãè¿ãåŠçãå¿ èŠãªå Žåã«ã¯ãVBAã䜿ã£ãŠçŽæ¥ã³ãŒããç·šéããããšã§ããã匷åãªèªååãå®çŸã§ããŸããã€ãŸããVBAã䜿ã£ãŠãã¯ããäœæãããšããé¢ä¿ã«ãªããŸãã
VBEïŒVisual Basic EditorïŒãšã¯
VBAãç·šéããããã®ãšãã£ã¿ã§ãã
以äžãååèªã®æå³ã§ãã
-
Visual Basic
- åè¿°åç §
-
EditorïŒç·šéããŒã«:æåãèšå·ãå ¥åã»ç·šéããããã®ãœãããŠã§ã¢ïŒ
- ã³ãŒããæžãããä¿®æ£ãããããããã®å°çšããŒã«
- å
¥åè£å®ãè²åã衚瀺ãªã©ã®ç·šéæ¯æŽæ©èœããã
äŸïŒå ¥åã®éäžã§åè£ã衚瀺ãããææ³ã«ãã£ãŠæåã®è²ãå€ãããªã©
VBAéçºç°å¢ã®æºå
éçºã¿ãã®è¡šç€º
- Excelãèµ·å
- [ãã¡ã€ã«] > [ãªãã·ã§ã³] > [ãªãã³ã®ãŠãŒã¶ãŒèšå®]
- å³åŽã®ãªã¹ãã§[éçº] ã«ãã§ãã¯ãå ¥ãã
- [OK]ãã¯ãªãã¯ããŠèšå®ãä¿å
VBEã®åºæ¬èšå®
-
[éçº] ã¿ããã [Visual Basic] ãã¯ãªãã¯
ïŒã·ã§ãŒãã«ãã:Alt + F11
ïŒ -
[ããŒã«] > [ãªãã·ã§ã³]
-
[ç·šé] > [èªåæ§æãã§ãã¯] ã®ãã§ãã¯ãå€ã
â» ãšã©ãŒã®ãã€ã¢ãã°ãç ©ãããããïŒè¡šç€ºè²ã§ãšã©ãŒãææ¡ïŒ -
[ç·šé] > [å€æ°ã®å®£èšã匷å¶ãã] ã«ãã§ãã¯ãå ¥ãã
â» ããŒã¿ã®çš®é¡ãæ確ã«ããããšã§ãäºæãã¬ãšã©ãŒãé²ããã³ãŒãã®ä¿¡é Œæ§ãšä¿å®æ§ãåäžãã -
[ãšãã£ã¿ãŒã®èšå®] > 以äžã®æšå¥šèšå®ãè¡ã
- æšæºã³ãŒãïŒ åæ¯/é»è²ãèæ¯/é»
- ã³ã¡ã³ãïŒ åæ¯/æ¿ãã°ã¬ãŒãèæ¯/é»
- ããŒã¯ãŒãïŒ åæ¯/æ°Žè²ãèæ¯/é»
- èå¥åïŒ åæ¯/çœãèæ¯/é»
- ãã©ã³ãå: Meiryo UI(æ¥æ¬èªïŒ
- ãµã€ãº: 10
-
[衚瀺] > [ããŒã«ããŒ] > [ç·šé]ã«ãã§ãã¯ãå ¥ãããã©ãã°ã§æ·»ä»ç»åã®äœçœ®ã«ç§»å
äžèšã®VBEã®åºæ¬èšå®ã¯ãæžç±ãExcelVBAãå®åã§äœ¿ãåãæè¡ïŒèè : é«æ©å®£æ / åºç瀟: ç§åã·ã¹ãã / çºå£²æ¥: 2017/4/20ïŒããåèã«ããŠãããŸãã
å®åã§åœ¹ç«ã€ããŠããŠããŸãšããããŠãããŸãã
VBAåå¿è
ããæãåºãããæ¹ãäžçŽè
ã®æ¹ã«ããããã®äžåã§ãã
VBEã®é è²èšå®ãregãã¡ã€ã«ã§ããã¯ã¢ããã»åŸ©å
äžè¿°ã®ããã«ãVBEã§äœ¿çšããã³ãŒãã®é è²èšå®ããèªå奜ã¿ã«ã«ã¹ã¿ãã€ãºããããšãã§ããŸãããããã®èšå®ã¯Windowsã®ã¬ãžã¹ããªã«ä¿åãããŠããŸããregãã¡ã€ã«ã䜿ã£ãŠãããã®èšå®ãããã¯ã¢ãããããã埩å ãããããããšã§ãè€æ°ã®é è²ãã¿ãŒã³ã管çãããããªããŸãã
çŸåšã®é è²èšå®ãããã¯ã¢ããããæ¹æ³
-
Windowsã㌠+ R
ãæŒããŠãregedit
ããšå ¥åããã¬ãžã¹ããªãšãã£ã¿ãŒãèµ·å
ãã³ããºçšãregedit
-
以äžã®ãã¹ã«ç§»å
HKEY_CURRENT_USER\Software\Microsoft\VBA\7.1\Common
â»ãã®ããŒã¯äœ¿çšäžã®Officeã®ããŒãžã§ã³ã«ãã£ãŠç°ãªãïŒVBAã®ããŒãžã§ã³ã«ãã£ãŠ7.1ã¯ç°ãªãïŒå ŽåããããŸãã
-
[Common]ãã©ã«ããå³ã¯ãªã㯠> [ãšã¯ã¹ããŒã]ãéžæ
-
ãã¡ã€ã«åããVBEé è²èšå®.regããšããŠä¿å
â» ãã¡ã€ã«åãä¿åå Žæã¯ä»»æã®ååã»å Žæã§æ§ããŸãã
â» æ¥ä»ãå ¥ãããªã©å·¥å€«ããããããããååãä»ããããšãæšå¥š
é è²èšå®ã埩å ããæ¹æ³
-
ããã¯ã¢ããããregãã¡ã€ã«ãããã«ã¯ãªãã¯
-
確èªã¡ãã»ãŒãžã衚瀺ãããã®ã§ãã¯ãããã¯ãªãã¯
-
ãã¬ãžã¹ããªã«æ£åžžã«è¿œå ãããŸããããšè¡šç€ºããããå®äº
â» VBEãåèµ·åãããšèšå®ãåæ ãããŸã
掻çšæ¹æ³
- è€æ°ã®é è²ãã¿ãŒã³ãä¿åããæ°åãçšéã«å¿ããŠåãæ¿ã
- ä»ã®PCã®é è²èšå®ãæåã§èšå®ããã«ãregãã¡ã€ã«ã§ç°¡åã«è¡ã
- æ°ããé è²ãè©Šãåã«ãçŸåšã®èšå®ãããã¯ã¢ãã
- èšå®ã厩ããå Žåãããã¯ã¢ããããç°¡åã«åŸ©å
泚æäºé
- ã¬ãžã¹ããªã®æäœã¯æ éã«è¡ã
- äºæããªãåé¡ãé¿ãããããå¿ ãå ã®é è²èšå®ãããã¯ã¢ãããè¡ã
- ããã¯ã¢ãããåãåã«ãVBEã®é è²èšå®ãæå³ããç¶æ ã«ãã
- PCã®ç°å¢ã«ãã£ãŠã¬ãžã¹ããªã®ãã¹ããç°ãªãå Žåããã
- regãã¡ã€ã«ã¯ããã¹ããã¡ã€ã«ãªã®ã§ãããã¹ããšãã£ã¿ã§éããŠç·šéããããšãå¯èœ
å®å šãªãã¯ãå©çšæ³
ããžã¿ã«çœ²åã«ã€ããŠ
ããžã¿ã«çœ²åã¯ããã¯ãã®äœæè ã蚌æããå 容ãæ¹ãããããŠããªãããšãä¿èšŒããé»åçãªçœ²åã§ãã
ããžã¿ã«èšŒææžã®ååŸæ¹æ³
- èªèšŒå±ãšåŒã°ããä¿¡é Œã§ãã第äžè æ©é¢ããçºè¡
- çµç¹å
ã§äœ¿çšããå Žåã¯ãèªå·±çœ²å蚌ææžãäœæ
â»å ·äœçãªèšå®æ¹æ³ã¯ãèªèšŒå±ãçµç¹ã®ã»ãã¥ãªãã£ããªã·ãŒã«ãã£ãŠç°ãªãããã該åœããæé ã«åŸã£ãŠãã ããã
ããžã¿ã«çœ²åã®ç¢ºèªæ¹æ³
- [éçº] ã¿ããã [Visual Basic] ãã¯ãªãã¯
ïŒã·ã§ãŒãã«ãã:Alt + F11
ïŒ - [ããŒã«] > [ããžã¿ã«çœ²å] ãã¯ãªãã¯
- 眲åã®èšèŒã確èª
ãã¯ããç¡å¹ãªç¶æ ã§ã®èŠåãšãã®å¯Ÿå¿
ãã¯ããç¡å¹åãããç¶æ ã§ãã¯ãä»ãExcelãã¡ã€ã«ãéããšãã»ãã¥ãªãã£èŠåã衚瀺ãããŸããä¿¡é Œã§ãããœãŒã¹ããã®ãã¡ã€ã«ã®å Žåãäžèšã®å¯Ÿå¿ã§ãã¯ãç¡å¹è§£é€ãã§ããŸãã
- ã»ãã¥ãªãã£ã«é¢ããéç¥ãåºãå Žå
äžèšã®èŠåãåºãå Žåã¯ãããã¯ããæå¹ã«ããããã¯ãªãã¯
- ã»ãã¥ãªãã£ã®èŠåãåºãå Žå
äžèšã®èŠåãåºãå Žåã¯ããã³ã³ãã³ãã®æå¹åããã¯ãªãã¯
- åããã¡ã€ã«ãé »ç¹ã«äœ¿çšããå Žå
[ä¿¡é Œã§ããå Žæ] ã«é 眮ããããšãæ€èš
-
Excelãèµ·å
-
[ãã¡ã€ã«] > [ãªãã·ã§ã³] > [ã»ãã¥ãªãã£ã»ã³ã¿ãŒïŒor ãã©ã¹ãã»ã³ã¿ãŒïŒ] > [ã»ãã¥ãªãã£ã»ã³ã¿ãŒã®èšå®ïŒor ãã©ã¹ãã»ã³ã¿ãŒã®èšå®ïŒ]
-
[ä¿¡é Œã§ããå Žæ] > [æ°ããå Žæã®è¿œå ]
-
åç §ãã¯ãªãã¯ãããã©ã«ããéžæã[OK]ãã¯ãªãã¯ããŠèšå®ãä¿å
â»ããã®å Žæã®ãµããã©ã«ããŒãä¿¡é Œãããã«ãã§ãã¯ããŠããã°ãè¿œå ãããã©ã«ãå ãã¹ãŠå®å šãšèŠãªãããŸãã -
åç §ã«è¿œå ãããã©ã«ãã«ãã¡ã€ã«ã移å
- ãã¯ãã®å®å šæå¹åãããå Žå
- åè¿°ã®ãåããã¡ã€ã«ãé »ç¹ã«äœ¿çšããå Žåãã®æé 1ïœ2ãè¡ã
- [ãã¯ãã®èšå®] > [ãã¹ãŠã®ãã¯ããæå¹ã«ãã] ã«ãã§ãã¯ãå ¥ãã
- [OK] ãã¯ãªãã¯ããŠèšå®ãä¿å
éèŠãªæ³šæäºé
ãã®èšå®ã¯ä»¥äžã®ãããªé倧ãªã»ãã¥ãªãã£ãªã¹ã¯ã䌎ããŸãã
ã»ãã¥ãªãã£ã®è匱å
- ãã¹ãŠã®ãã¯ããèŠåãªãã§å®è¡å¯èœãšãªã
- æªæã®ãããã¯ããèªåçã«å®è¡ãããå¯èœæ§ããã
- ä¿¡é Œã§ããçºè¡å ããã®ãã¯ãã§ãã£ãŠããæªæã®ããã³ãŒããå«ãŸããŠããå¯èœæ§ã¯ãŒãã§ã¯ãªã
æšå¥šããã代æ¿æ¡
- é垞㯠[ããžã¿ã«çœ²åãããçºè¡å ããã®ãã¯ãã®ã¿æå¹ã«ãã] ã®èšå®ãæšå¥š
- [èŠåã衚瀺ããŠãã¹ãŠã®ãã¯ããç¡å¹ã«ãã] ã®èšå®ã«ããå®è¡ã®éœåºŠãæå¹åããæ¹æ³ãå®å š
- åè¿°ã®[ä¿¡é Œã§ããå Žæ] ã«é 眮ã®æ¹æ³ã§ç®¡ç
ã»ãã¥ãªãã£èŠåã¯äžèŠç ©ãããæãããããããããŸããããéèŠãªã»ãã¥ãªãã£å¯Ÿçã®äžã€ãšããŠæ©èœããŠããŸããå®å šãªç¡å¹åããããå¿ èŠã«å¿ããéžæçãªæå¹åãæšå¥šããŸãã
ãŸãšã
VBAã¯ãæ¥åå¹çãå€§å¹ ã«åäžããã匷åãªããŒã«ã§ããæ¬èšäºã§ã¯ãVBAã®åºç€ç¥èãã»ãã¥ãªãã£é¢ã§ã®éèŠãªæ³šæç¹ã«ã€ããŠè§£èª¬ããŸãããVBAã掻çšããããšã§ãããŒã¿å ¥åãéèšäœæ¥ã®èªååãå®åæ¥åã®å¹çåãªã©ãæ§ã ãªæ¥åæ¹åãå¯èœãšãªããŸããç¹ã«ãé©åãªã»ãã¥ãªãã£èšå®ãšããžã¿ã«çœ²åã®æŽ»çšã¯ãå®å šãªVBAéçºã®åºç€ãšãªããŸãã
ããèšäºã®å 容ã«ééããããã°ãã³ã¡ã³ãã§ãææããã ããŸããšå¹žãã§ãããŸããããè¯ãæ¹æ³ã代æ¿æ段ããåç¥ã®æ¹ãããã£ããããŸãããããã²å ±æããŠããã ããã°ãšåããŸããäŸãã°ãéçºç°å¢ã®èšå®æ¹æ³ãã»ãã¥ãªãã£å¯Ÿçã®å®è·µäŸãå¹ççãªVBAéçºã®ææ³ãªã©ãçæ§ã®ç¥èŠããã¹ããã©ã¯ãã£ã¹ããèããããã ããã°å€§å€åèã«ãªããŸãã
次åã®èšäºã§ã¯ãå®éã®VBAã³ãŒãã®æžãæ¹ã«ã€ããŠè§£èª¬ããäºå®ã§ããã»ã«ã®æäœã«æ¬ ãããªãRangeãšCellsã®äœ¿ãåããValueã¡ãœããã䜿ã£ãã»ã«ãžã®å€ã®ä»£å ¥æ¹æ³ããªããžã§ã¯ãã»ããããã£ã»ã¡ãœããã®åºæ¬çãªæŠå¿µããããŠClearãšDeleteã®éããªã©ã説æããŸããã©ããã楜ãã¿ã«ïŒ