Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Give this approach a try:
Sub Auto_Open() Set wks = Worksheets("Sheet2") Application.DisplayAlerts = False On Error GoTo myerror With wks .Activate .Range("A1").Select .ShowDataForm End With myerror: If Err 0 Then MsgBox (Error(Err)) Err.Clear End If Application.DisplayAlerts = True End Sub -- jb "ypukpete" wrote: I wish to auto open excel's built in dataform and if possible hide the worksheet it relates to. I have tried Dave Peterson's... Sub Auto_Open Set wks = Worksheets("Sheet2") With wks Application.DisplayAlerts = False .ShowDataForm Application.DisplayAlerts = True End With End Sub But had no success, the code breaks at .ShowDataForm I would like to show the dataform and hide worksheet2 if possible I am using excel 2000 Thanks in advance for your help with this. -- ypukpete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto saving data from a Word form to Excel | Excel Discussion (Misc queries) | |||
Auto refreshing and printing a form with data from each row of a spreadsheet | Excel Discussion (Misc queries) | |||
Auto fill form with data from worksheet | Excel Programming | |||
edit data while form open | Excel Programming | |||
Ascending data form auto-entry? | Excel Programming |