April 2006
Beginner
1114 pages
98h 16m
English
To display a data form from code, take these steps:
Get a reference to the worksheet containing the data-entry range.
Call the ShowDataForm method on that worksheet object.
The following code displays the data form for the DataForm worksheet:
Sub ShowDataForm( )
Dim ws As Worksheet
Set ws = Worksheets("DataForm")
ws.ShowDataForm
End Sub
Figure 20-5. Using a list of values for validation

Figure 20-6. Values from the validation list appear in a dropdown
The data-entry range should be contiguous. Blank rows or columns within that range cause problems entering new records.
Read now
Unlock full access