1부터 100 까지 합 구하는 코딩을
GPT가 해주었다
VBA Code for Numbers
From 1 to 100 vba code
Here is some sample VBA code that will print the numbers from 1 to 100:
Copy code
Sub printNumbers()
For i = 1 To 100
Debug.Print i
Next i
End Sub
You can run the code by placing the cursor inside the Sub and press “F5” or “Run” in VBA editor. The numbers will be printed in the immediate window (also known as the debug window) of the VBA editor. If you want to print the numbers in a worksheet, you can use the following code:
Copy code
Sub printNumbers()
For i = 1 To 100
Cells(i, 1) = i
Next i
End Sub
This code will print the numbers in the first column of the active worksheet.