Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can have the built-in data form open with the workbook with:
Private sub Workbook_Open() ActiveSheet.ShowDataForm End Sub The data form appears to be modal so I can't do anything else until it is closed. Can I have the event of closing the data form cause the workbook to be saved and close? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should do it:
Private sub Workbook_Open() ActiveSheet.ShowDataForm Me.Close True End Sub "Slim Slender" wrote in message ... I can have the built-in data form open with the workbook with: Private sub Workbook_Open() ActiveSheet.ShowDataForm End Sub The data form appears to be modal so I can't do anything else until it is closed. Can I have the event of closing the data form cause the workbook to be saved and close? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Private sub Workbook_Open() ActiveSheet.ShowDataForm ThisWorkbook.Close true End Sub On Feb 1, 10:23*am, Slim Slender wrote: I can have the built-in data form open with the workbook with: Private sub Workbook_Open() * * *ActiveSheet.ShowDataForm End Sub The data form appears to be modal so I can't do anything else until it is closed. Can I have the event of closing the data form cause the workbook to be saved and close? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks guys. Both of those work. But, just one problem.
Be careful what you ask for. It appears that I'll never be able to do anything with such a file other than use the data form. I can't get to the sheet or the VBE because the file closes as soon as the form is dismissed. Someone at work suggested this to protect a worksheet form nin-compoops but this ain't the way. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Slim Slender formulated on Tuesday :
Thanks guys. Both of those work. But, just one problem. Be careful what you ask for. It appears that I'll never be able to do anything with such a file other than use the data form. I can't get to the sheet or the VBE because the file closes as soon as the form is dismissed. Someone at work suggested this to protect a worksheet form nin-compoops but this ain't the way. Can you possibly hide the sheet and use the data form while some other sheet is active? -- Garry Free usenet access at http://www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Feb 1, 9:57*pm, GS wrote:
Slim Slender formulated on Tuesday : Thanks guys. Both of those work. But, just one problem. Be careful what you ask for. It appears that I'll never be able to do anything with such a file other than use the data form. I can't get to the sheet or the VBE because the file closes as soon as the form is dismissed. Someone at work suggested this to protect a worksheet form nin-compoops but this ain't the way. Can you possibly hide the sheet and use the data form while some other sheet is active? -- Garry Free usenet access athttp://www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc That's the ticket! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula (off form) that completes form data based on a result | Excel Worksheet Functions | |||
Create a form in excel so I can enter data using DataForm | Excel Discussion (Misc queries) | |||
how to get a data form to fill you own exel sheet (was data-form | Excel Worksheet Functions | |||
Transfer data to form from Excel range upon loading of form. | Excel Programming | |||
Data Entry Form (similar to default Excel DataForm) | Excel Programming |