

Specifies the maximum number of characters to copy to the buffer, including the NULL character. Points to the buffer that will receive the text. Identifies the window or control containing the text. If the specified window is a control, the text of the control is copied.ĭeclare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVaL hwnd As Long, ByVaL lpString As String, ByVaL cch As Long) As Long The GetWindowText function copies the text of the specified window’s title bar (if it has one) into a buffer. WindowDescription - Get a textual description of a window given its hWnd Implement password-protected TextBox that are really secureįillWindowsTree - Fill a treeview with the windows hierarchy 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.Library : user32.dll Category : _CategoryNotSet

Provides documentation about Visual Basic the language: all its methods, properties, statements, functions, operators, and objects. Provides information about UserForms and controls, and how to program with them by using Visual Basic.ĭescribes useful common procedures (for example, how to use the Object Browser or how to set Visual Basic Environment options). Provides information to help you understand Visual Basic programming.

Use the table of contents in the navigation on the left to view the topics in the following sections: Interested in developing solutions that extend the Office experience across multiple platforms? Check out the new Office Add-ins model.
