Microsoft Visio VBA CustomUI Ribbon help - Changing Default Value of EditBox

Austin Dang 1 Reputation point
2021-07-22T17:11:05.997+00:00

I have a customUI Ribbon with an EditBox and want to set the default value when the User opens the Visio template file.

Basically I expect my Editbox text to have its default text updated through its getText callback function but it does not happen.

Microsoft forum will not let me post code properly for some reason, but here is a cross post link:

https://stackoverflow.com/questions/68488819/microsoft-visio-vba-customui-ribbon-help-changing-default-value-of-editbox

Any help would be appreciated, thanks!

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tom van Stiphout 1,696 Reputation points MVP
    2021-07-23T04:04:35.897+00:00

    getText is the right idea. Note that all ribbon xml is case sensitive.
    In some cases you need to use this: https://learn.microsoft.com/en-us/office/vba/api/office.iribbonui.invalidatecontrol


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.