View Single Post
 
Old 06-13-2018, 02:17 AM
Dwids Dwids is offline Windows 10 Office 2016
Novice
 
Join Date: Apr 2018
Posts: 5
Dwids is on a distinguished road
Default Page.SetTheme Method example VBA?

I've inherited a number of multi-page Visio files and want to get them all to use the same Theme (and variations).

From the Shape Sheet from the 'one I wish to use as a reference' I can see the Page's "ThemeIndex" value (number) etc. But just can't get it/them to properly apply to a 2nd Visio file, via the Page.SetTheme Method in a VBA macro.

PagObj.SetTheme (35) works . It adds the space before the (). Mmm.
PagObj.SetTheme (35,2) gets a compile error; syntax error. This is what I want to use

(Yes I'm new to Visio VBA)

Thanks
Reply With Quote