Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English
Read in English Edit

Share via

Facebook x.com LinkedIn Email

Statements

  • Article
  • 09/13/2021

In this article

  • AppActivate
  • Beep
  • Call
  • ChDir
  • ChDrive
  • Close
  • Const
  • Date
  • Declare
  • Deftype
  • DeleteSetting
  • Dim
  • Do...Loop
  • End
  • Enum
  • Erase
  • Error
  • Event
  • Exit
  • FileCopy
  • For Each...Next
  • For...Next
  • Function
  • Get
  • GoSub...Return
  • GoTo
  • If...Then...Else
  • Implements
  • Input #
  • Kill
  • Let
  • Line Input #
  • Load
  • Lock, Unlock
  • LSet
  • Mid
  • MkDir
  • Name
  • On Error
  • On...GoSub, On...GoTo
  • Open
  • Option Base
  • Option Compare
  • Option Explicit
  • Option Private
  • Print #
  • Private
  • Property Get
  • Property Let
  • Property Set
  • Public
  • Put
  • RaiseEvent
  • Randomize
  • ReDim
  • Rem
  • Reset
  • Resume
  • RmDir
  • RSet
  • SaveSetting
  • Seek
  • Select Case
  • SendKeys
  • Set
  • SetAttr
  • Static
  • Stop
  • Sub
  • Time
  • Type
  • Unload
  • While...Wend
  • Width #
  • With
  • Write #

See also

  • Keywords (Visual Basic for Applications)
  • Visual Basic language reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.


Feedback

Was this page helpful?

Feedback

Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.

Submit and view feedback for

This page
View all page feedback

Additional resources

California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2024

Additional resources

In this article

California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2024