VBA Is Short For Visual Basic For Application.: History Hint
VBA Is Short For Visual Basic For Application.: History Hint
VBA Is Short For Visual Basic For Application.: History Hint
History hint: Excel 5 was the first application on the market to feature Visual
/*******************************
Collections
Like objects form a collection.
Active objects
If not specified ,the active objects is enabled
Objects properties
/*******************************
Worksheets(Sheet1).Range(A1).Value
/*******************************
Objects Methods
/*******************************
Range(A1).ClearContents
/*******************************
Events
Some objects recognize specific events, and you can write VBA code that is executed
when the event occurs. For example, opening a workbook triggers a Workbook_
Open event. Changing a cell in a worksheet triggers a Worksheet_Change event.
b. The work space
VBE: Visual Basic Editor (Alt + F11 or Developer Ribbon->Visual Basic)
1. Project Explorer
Sub SayHello()
Msg = "Is your name " & Application.UserName & "?"
Ans = MsgBox(Msg, vbYesNo)
If Ans = vbNo Then
MsgBox "Oh, never mind."
Else
MsgBox "I must be clairvoyant!"
End If
End Sub
/*******************************
Press F5 to run.