Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a combo box with two items in it. Is it possible to load both items
but restric access to only one of them. For examle below you can see that I have two items. I want the user to see both but I want to disable access to the second one. That is I want the user to know the option will be there evenutally but now now. What I am really asking is does the item have an enabled property? Thanks With MainUserForm.DisplayResultsCmbBx .AddItem "As New Worksheet in This Excel File" .AddItem "As Worksheet in New Excel File" End With |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No.
-- Regards, Tom Ogilvy "ExcelMonkey" wrote in message ... I have a combo box with two items in it. Is it possible to load both items but restric access to only one of them. For examle below you can see that I have two items. I want the user to see both but I want to disable access to the second one. That is I want the user to know the option will be there evenutally but now now. What I am really asking is does the item have an enabled property? Thanks With MainUserForm.DisplayResultsCmbBx .AddItem "As New Worksheet in This Excel File" .AddItem "As Worksheet in New Excel File" End With |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A work around might be something along the lines of:
With MainUserForm.DisplayResultsCmbBx ..AddItem "As New Worksheet in This Excel File" ..AddItem "As Worksheet in New Excel File (Disabled)" End With Then add a msgbox to the CmbBx_Click event if the user selects item 2 telling the user that it is temporarily not available Then use another event driven macro to delete item 2 and replace it with your original item 2 when it is appropriate. This is a bit awkward but may be a "next best" way for you. "ExcelMonkey" wrote: I have a combo box with two items in it. Is it possible to load both items but restric access to only one of them. For examle below you can see that I have two items. I want the user to see both but I want to disable access to the second one. That is I want the user to know the option will be there evenutally but now now. What I am really asking is does the item have an enabled property? Thanks With MainUserForm.DisplayResultsCmbBx .AddItem "As New Worksheet in This Excel File" .AddItem "As Worksheet in New Excel File" End With |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
disable consecutive date option | Excel Discussion (Misc queries) | |||
Save-As Option Disable | Excel Worksheet Functions | |||
How to disable smoothline option. | Charts and Charting in Excel | |||
Disable "Save As" Option | Excel Discussion (Misc queries) | |||
Disable Macro Option | Excel Programming |