Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Disable Option in Como Box

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Disable Option in Como Box

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Disable Option in Como Box

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable consecutive date option srain001 Excel Discussion (Misc queries) 2 December 4th 07 10:09 PM
Save-As Option Disable Salman Excel Worksheet Functions 0 January 9th 07 12:09 PM
How to disable smoothline option. Sureshkrishnan Charts and Charting in Excel 2 October 15th 05 01:47 PM
Disable "Save As" Option Andy T Excel Discussion (Misc queries) 1 December 10th 04 10:23 AM
Disable Macro Option Pete Excel Programming 2 April 14th 04 09:14 PM


All times are GMT +1. The time now is 03:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"