View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Alter ribbon button label on the fly?

I have a custom ribbon with a date button, a Fund dropdown, and an import
button.

When the user clicks the "Date" button, I have an input box open in which
the user enters a date (the date is validated using VBA under the covers). I
would like the date entered by the user to then appear in the label of the
"Date" button. So when a date has been selected, the "Date" button will
appear as: Date: 04-28-2008

Can this be done? If so, could someone please post generic example code that
does it?

FYI, the next step will be to capture the date stored in the label (right
10) and run an import based on that date and the selected Fund selected in
the dropdown.

Thanks much in advance.