Visio VBA to hide file tab and unhide agian(Conditional based)

Started by mchilpaur, June 24, 2016, 12:47:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mchilpaur

Dear all,
I am new to visio vba and wanted to know if there is any way to hide file tab and unhide it again based on weather if a condition is true or false..?

My basic intent is to disable 'Save as' option if some condition is not met.

Thanks
Madvesh

wapperdude

Visio 2019 Pro

mchilpaur

Will it differ..? :( I use Visio 2010

wapperdude

Does version make a difference, possibly,  V2010 marked the intro of the ribbon interface.  With it came an updated object model with new commands.  Might be relevant.  I have V2007, so cannot directly help.  Rarely, muck with  UI, so even less help.  Hopefully, the V2010 and newer users will check this post and contribute.

I did do a quick web search, found this for Excel.  At least it  an approach.  Visio's object model might  these commands.
http://stackoverflow.com/questions/19967283/excel-hide-show-all-tabs-on-ribbon-except-custom-tab

Wapperdude
Visio 2019 Pro