Article ID: 142113
Article Last Modified on 10/11/2006
A1: Name B1: Age C1: Team A2: John B2: 25 C2: Blue A3: Fred B3: 32 C3: Red A4: Linda B4: 28 C4: Blue A5: Joe B5: 22 C5: Red
Sub auto_open()
' Activate the sheet that contains your database.
Worksheets("Sheet1").Activate
' Show the data form for the selected range.
ActiveSheet.ShowDataForm
End Sub
How Do I Set Up a Workbook So That It Runs a Macro Each Time I Open It?For more information about creating macros that run automatically in Microsoft Excel version 5.0, choose the Search button in Help and type:
auto open files"Visual Basic User's Guide," version 5.0, Chapter 13, "Auto_Open Procedures"
ARTICLE-ID: 163435
TITLE : VBA: Programming Resources for Visual Basic for Applications
Additional query words: 5.00a 5.00c 8.00 XL97 XL
Keywords: kbdtacode kbhowto kbprogramming KB142113