About 32,400 results
Open links in new tab
  1. How to check and remove incorrect project references in the …

    This article describes how to create references to other Microsoft Visual Basic for Applications (VBA) projects, how to verify that the references are correct, and how to programmatically …

  2. Find Help on using the Visual Basic Editor - Microsoft Support

    Microsoft Visual Basic for Applications (VBA) enables non-programmers to record, create, and edit macros that can automate tasks in Office applications. This article explains where you can …

  3. Add object libraries to your Visual Basic project

    On the Tools menu on the top toolbar, select References. Under Available References, select the check box for the object library that you want available in your Visual Basic project.

  4. GetObject Function - Microsoft Support

    This example uses the GetObject function to get a reference to a specific Excel worksheet (MyXL). It uses the worksheet's Application property to make Excel visible, to close it, and so on.

  5. How to dynamically add and run a VBA macro from Visual Basic

    This article demonstrates how to dynamically add a VBA module to a running Office application from Visual Basic, and then call the macro to fill a worksheet in-process.

  6. CreateObject Function - Microsoft Support

    Once an object is created, you reference it in code using the object variable you defined. In the following example, you access properties and methods of the new object using the object …

  7. Environ Function - Microsoft Support

    Note: Examples that follow demonstrate the use of this function in a Visual Basic for Applications (VBA) module. For more information about working with VBA, select Developer Reference in …

  8. Shell Function - Microsoft Support

    Note: Examples that follow demonstrate the use of this function in a Visual Basic for Applications (VBA) module. For more information about working with VBA, select Developer Reference in …

  9. Macro to Loop Through All Worksheets in a Workbook

    References For additional information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base: 163435 VBA: Programming …

  10. Quick start: Create a macro - Microsoft Support

    Macros and VBA tools can be found on the Developer tab, which is hidden by default, so the first step is to enable it. For more information, see Show the Developer tab.

  11. Choose Function - Microsoft Support

    Note: Examples that follow demonstrate the use of this function in a Visual Basic for Applications (VBA) module. For more information about working with VBA, select Developer Reference in …