Hi
I am looking to assign dynamic text to the label property a labelControl object in a custom Backstage/Ribbon project(in Excel), this text needs to come from an external text file.
I am looking for a method similar to the one which currently works when I want to reference an image file per below:
Sub getImage(control As IRibbonControl, index As Integer, ByRef image)
Set image = LoadPicture("c:\temp\image1.jpg")
End Sub
The labelControl object has a callback property (getLabel), which I intend to use in order to feed the text from the external text file to it.
So something like:
Sub getExternalText(control As IRibbonControl, ByRef textfile)
Set textfile= LoadFile("c:\temp\test.text")
End Sub
..would be great if it worked.
Appreciate any suggestions
Thanks a lot
Fergal
I am looking to assign dynamic text to the label property a labelControl object in a custom Backstage/Ribbon project(in Excel), this text needs to come from an external text file.
I am looking for a method similar to the one which currently works when I want to reference an image file per below:
Sub getImage(control As IRibbonControl, index As Integer, ByRef image)
Set image = LoadPicture("c:\temp\image1.jpg")
End Sub
The labelControl object has a callback property (getLabel), which I intend to use in order to feed the text from the external text file to it.
So something like:
Sub getExternalText(control As IRibbonControl, ByRef textfile)
Set textfile= LoadFile("c:\temp\test.text")
End Sub
..would be great if it worked.
Appreciate any suggestions
Thanks a lot
Fergal