Is it possible to display today's date on a ribbon button, if so how will you give the label the command?
Is it possible to display today's date on a ribbon button, if so how will you give the label the command?
Last edited by CobraLAD; 05-06-2013 at 03:23 AM.
You need to use the getLabel callback
standard code module.
customui xmlPlease Login or Register to view this content.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" >
<ribbon >
<tabs >
<tab
id="Tab1"
label="Tab1">
<group
id="Group1"
label="Group1">
<button
id="Button1"
imageMso="ViewAllProposals"
size="large"
getLabel="Button1_getLabel"/>
</group >
</tab >
</tabs >
</ribbon >
</customUI >
Thank you very much Andy
if I add
it auto add the date to the cell. How wil the button be setup so that the date is added only when the button is clickedPlease Login or Register to view this content.
you need the onAction callback not the getLabel one for pressing the button
Josie
if at first you don't succeed try doing it the way your wife told you to
Thanks Joseph
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks