Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Custom ribbon dropdown

Hello,

I have a custom ribbon tab that contains two dropdowns. Dropdown(1)
has a GetSelectedItemIndex built in to show a value corresponding to
the selected worksheet name when opened/activated. Dropdrown(2) does
not require this. When I select a dropdown(1) value, dropdown(2) is
Invalidated and resets its list showing a blank value allowing the
user to reselect any value. This is by design and works great. When I
select a dropdown(2) value, dropdown(1) is also Invalidated to reset
its values but its GetSelectedItemIndex does not allow the control to
show a blank allowing the user to select any value. I have tried to
intercept this by setting dropdown(1)'s Index to "-1", but this
produces an error. How can I get around this?

'Callback for Dropdown getSelectedItemIndex
Sub GetDropdownIndex(control As IRibbonControl, ByRef Index)

Select Case control.id

Case "Dropdown(1)"

If ActiveSheet.Name = "CFSTotals" Then
' Sets the timesheet dropdown to a blank????
Index = -1
Else
' Sets the timesheet dropdown value to active
worksheet.
Index = Workbooks(gsEmployee &
".xlsx").ActiveSheet.Index - 1
End If

End Select
End Sub
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
Assign custom number format to the ribbon Louis Wilson Excel Discussion (Misc queries) 0 June 24th 09 05:41 PM
Custom menus don't appear under custom ribbon tab Misbah Excel Programming 2 April 15th 08 01:29 AM
no custom button in ribbon Birgit[_2_] Excel Programming 3 February 21st 08 03:41 PM
Macro Fault on Custom Ribbon Karen[_13_] Excel Programming 5 January 23rd 08 07:32 PM
2007 Ribbon dropdown [email protected] Excel Programming 0 January 4th 08 10:52 PM


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

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

About Us

"It's about Microsoft Excel"