PC Review


Reply
Thread Tools Rate Thread

Alter ribbon button label on the fly?

 
 
XP
Guest
Posts: n/a
 
      28th Apr 2008
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.
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      28th Apr 2008
If you are referring to Excel 2007, it can't be done yet. Whether it will in
future is debatable, but not now.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"XP" <(E-Mail Removed)> wrote in message
news:01A1C0B4-D569-4420-88E4-(E-Mail Removed)...
>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.



 
Reply With Quote
 
XP
Guest
Posts: n/a
 
      28th Apr 2008
Hi Jim,

Your attachment did not come through?

"Jim Rech" wrote:

> Actually it's pretty straightforward to dynamically change button text, if I
> understand what you want correctly. See attached.
>
> --
> Jim
> "XP" <(E-Mail Removed)> wrote in message
> news:01A1C0B4-D569-4420-88E4-(E-Mail Removed)...
> |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

 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      29th Apr 2008
You should use Outlook Express or another real newsreader. The attachment is
right there. Web interfaces block it I gather.

If you send me an email I'll send it to you. jrrechAThotmail.com

--
Jim
"XP" <(E-Mail Removed)> wrote in message
news7C7F605-54BA-4E73-A8CF-(E-Mail Removed)...
> Hi Jim,
>
> Your attachment did not come through?
>
> "Jim Rech" wrote:
>
>> Actually it's pretty straightforward to dynamically change button text,
>> if I
>> understand what you want correctly. See attached.
>>
>> --
>> Jim
>> "XP" <(E-Mail Removed)> wrote in message
>> news:01A1C0B4-D569-4420-88E4-(E-Mail Removed)...
>> |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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ampersand in label caption in Excel 2007 Ribbon SJ Microsoft Excel Programming 3 1st Sep 2009 05:26 PM
Assign a Ribbon Control's Label from a Variable in VBA Code jean grey Microsoft Excel Programming 3 27th Jan 2009 05:47 AM
Label.AutoSize is failing to alter Width property. Patrick Lioi Microsoft C# .NET 1 17th Nov 2006 01:30 PM
Label.AutoSize is failing to alter Width property. patrick.lioi@gmail.com Microsoft Dot NET Framework Forms 2 17th Nov 2006 12:15 PM
Alter mask of image on button RB Smissaert Microsoft Excel Programming 1 8th Jan 2006 11:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:02 AM.