What is VBA?
Example:
Sub HelloWorld()
MsgBox "Hello, World!"
End Sub
복습용 저장
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.
Know the top VBA interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Know the top VBA interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Search a question to view the answer.
Example:
Sub HelloWorld()
MsgBox "Hello, World!"
End Sub
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Dim myVar As String
myVar = "Hello"
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Dim ws As Worksheet
Set ws = ThisWorkbook.Worksheets(1)
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Dim cell As Range
For Each cell In Range("A1:A10")
Debug.Print cell.Value
Next cell
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
'Option Explicit
Sub Example()
Dim x As Integer
y = 10 ' This will cause an error without 'Option Explicit'
End Sub
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Sub Example()
If condition Then
Exit Sub
End If
' Rest of the code
End Sub
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Sheets.Add After:=Sheets(Sheets.Count)
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
If x > 10 Then
Debug.Print "x is greater than 10"
ElseIf x < 10 Then
Debug.Print "x is less than 10"
Else
Debug.Print "x is equal to 10"
End If
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Do While i < 10
Debug.Print i
i = i + 1
Loop
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Const PI As Double = 3.14159
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
On Error Resume Next
' code that may cause an error
On Error GoTo 0
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
For i = 1 To 10
Debug.Print i
Next i
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
MsgBox "Hello, World!", vbInformation + vbOKOnly, "Greeting"
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Call MyProcedure()
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Dim myArray(1 To 3) As Integer
myArray(1) = 10
myArray(2) = 20
myArray(3) = 30
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Dim userInput As String
userInput = InputBox("Enter your name:", "User Input")
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
Application.ScreenUpdating = False
' Your code here
Application.ScreenUpdating = True
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.