æä½ã®å¯¾è±¡ã»ã«ç¯å²ãä¸å®ã®å ´å ããã¾ã§ã®è§£èª¬ã§ã¯ãæä½ã®å¯¾è±¡ããã»ã«A1ã«ãã¨ããã»ã«ç¯å²A1:C3ã«ããªã©ã¨ç°¡åã«æ±ºãã¦ãã¾ããããã¡ãã解説ãªã®ã§ããããããã¯åå¼ãã¦ããã ãããã®ã§ããã©ãå®éã®ãã¯ãä½æã§ã¯æä½ã®å¯¾è±¡ãç¹å®ãããã¨ã«è¦å´ãããã®ã§ããæä½ã®å¯¾è±¡ã»ã«ããã©ãç確ã«ç¹å®ãããããVBAã®ãã®ãã¼ã¨ããã©ã³ã§å·®ãåºãã¨ããã§ãããã¾ãããã¨ãã°ã次ã®ãããªãã¼ã¿ãèãã¦ã¿ã¾ãããã ãã®ãã¼ã¿ããã¯ãã§ã¯ãªã¢ãã¾ãããã ãããã¼ã¿ãä½è¡ä½åãããã¯ããã®ã¨ãã«ãã£ã¦ç°ãªãã¾ããã»ã«ãã¯ãªã¢ããã«ã¯Rangeãªãã¸ã§ã¯ãã®ClearContentsã¡ã½ããã使ãã¾ãã次ã®ã³ã¼ãã¯ã»ã«ç¯å²A1:D5ãã¯ãªã¢ãã¾ãã Sub Sample1() Range("A1:D5").ClearContents End Sub ã¯ãªã¢ãã¹ãã»ã«ç¯å²ã®å·¦ä¸ã¯ã»ã«A1ã§ãããããã£ã¦ãã»
{{#tags}}- {{label}}
{{/tags}}