Last active
September 20, 2017 12:37
-
-
Save milk19873/5bcd527867fe3e52ca4dbf9ecc5b23d4 to your computer and use it in GitHub Desktop.
Subプロシージャ例2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub MainSub() | |
'Callを使わないでSubプロシージャを呼び出す | |
TestSub 7, 4 | |
End Sub | |
Sub TestSub(a As Integer, b As Integer) | |
Dim result As Integer | |
result = a + b | |
'計算結果を「A1」のセルに代入 | |
Sheets("Sheet1").Cells(1, 1) = result | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment