ãã¼ã¿ãã¼ã¹ã¨ãã¦ä½¿ããã表ãªã®ã«ãçµåã»ã«ã ããã§ä½¿ãç©ã«ãªããªãã ãããªã¨ãã«ãVBAã§ä½ã£ããã¯ããèµ·åããã ãã§ã çµåã»ã«ã解é¤ã㦠å ã å ¥ã£ã¦ããå¤ããçµåããã¦ãããã¹ã¦ã®ã»ã«ã«å ¥åãã ãã¯ããç´¹ä»ãã¾ãã ã½ã¼ã¹ã³ã¼ããè²¼ãä»ãã¦å®è¡ããã ããªã®ã§ã1åãããããã«ã表ãæ´å½¢ã§ãã¾ãã ã½ã¼ã¹ã³ã¼ã ä¸è¨ããæ¨æºã¢ã¸ã¥ã¼ã«ã«è²¼ãä»ãã¦å®è¡ãã¦ãã ããã Sub UnmergeCellsAndFillValues() Dim rng As Range For Each rng In ActiveSheet.UsedRange If rng.MergeCells Then With rng.MergeArea .UnMerge .Value = .Resize(1, 1).Value End With End If Next End Sub 解説 For Eachã«ã¼ã F
{{#tags}}- {{label}}
{{/tags}}