[visio 2007] 'Remove Theme' on single shape

T

thomas.klaus

Hi there,

I've got a question about Visio 2007. There is a function 'Remove
Theme' which can be executed on a single shape (using Format->Remove
Theme). How can I run this function programmatically?

Thanks in advance,
Thomas
 
J

JuneTheSecond

My idea is to change the data in shapesheet, FilFormat section and Color cell
in Chracter section. If you watch the change in these sections, you wouldfind
how tp change them. Al the value like Theme.... might be changed to 1 or 0.
 
A

Al Edlund

unfortunately I had to leave Chris' presentation early (last week). I think
he may have dealt with some of this at the developers conference. Check his
web site (www.visguy.com).
al
 
M

Mark Nelson [MS]

I don't believe you can do this easily. You could always modify every cell
touched by the Theme, but that is a lot of code to write.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
T

thomas.klaus

Hi Mark,

According to Bill Morein, there seems to be a possiblity, but
unfortunately this produces an exception:

Application.DoCmd visCmdRemoveThemeFromSel
 
M

Mark Nelson [MS]

Yes, Bill and I chatted about this. The code below would be correct, if
Visio allowed the command to be called via automation. However, it is not
callable via automation in Visio 2007 - thus the exception.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top