Visio Guy

Visio Discussions => Programming & Code => Topic started by: mchilpaur on June 24, 2016, 12:47:35 AM

Title: Visio VBA to hide file tab and unhide agian(Conditional based)
Post by: mchilpaur on June 24, 2016, 12:47:35 AM
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
Title: Re: Visio VBA to hide file tab and unhide agian(Conditional based)
Post by: wapperdude on June 24, 2016, 01:21:15 AM
Which release of Visio?

wapperdude
Title: Re: Visio VBA to hide file tab and unhide agian(Conditional based)
Post by: mchilpaur on June 24, 2016, 02:55:07 AM
Will it differ..? :( I use Visio 2010
Title: Re: Visio VBA to hide file tab and unhide agian(Conditional based)
Post by: wapperdude on June 24, 2016, 01:41:37 PM
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 (http://stackoverflow.com/questions/19967283/excel-hide-show-all-tabs-on-ribbon-except-custom-tab)

Wapperdude