Skip to content

Instantly share code, notes, and snippets.

@kencoba
Created September 8, 2015 12:08
Show Gist options
  • Save kencoba/41ec4604b082907fadd3 to your computer and use it in GitHub Desktop.
Save kencoba/41ec4604b082907fadd3 to your computer and use it in GitHub Desktop.
セルに数式を入れる
Public Sub InputFormula()
Dim r As Range: Set r = Range(Cells(1, 6), Cells(20, 10))
Dim c As Range
Dim i As Integer: i = 101
For Each c In r
c = "=データ!A" & i
i = i + 1
Next c
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment