セルへ値や数式を入力する:Excel VBA入門 |
スポンサードリンク | |
Value | Formula | FillDown |
Clear | ClearContents | ClearFormats |
Sub rei_1801() Range("A1").Value = "AAA" Range("A2").Value = 123 Range("B1") = "BBB" Range("B2") = 456 End Sub |
Sub rei_1801b() With Worksheets("Sheet3") .Range("A1").Value = "AAA" .Range("A2").Value = 123 .Range("B1") = "BBB" .Range("B2") = 456 End With End Sub |
Sub rei_1802() Range("D2:D4").Formula = "=B2*C2" Range("D5").Formula = "=SUM(D2:D4)" Range("E2:E4").Formula = "=D2/$D$5*100" End Sub |
Sub rei_1803() Range("D2").Formula = "=B2*C2" Range("D2:D4").FillDown End Sub |
Sub rei_1804() Range("D1:D5").Clear Range("E1:E5").ClearContents Range("F1:F5").ClearFormats End Sub |
スポンサードリンク
PageViewCounter
Since2006/2/27