Hi all
How would I go about applying graphic styles to a path using VBA? I would imagine the following line is wrong because it doesn't work.Any help would be appreciated.
idoc.GraphicStyles("02-S").ApplyTo (isquare2)
You're right, it is no fun to have someone give you all the answers. Trial and error is how I learn the most, well it least to make it stick. Believe me, I go online and try out different things before posting anything on here. Along the way, I might not find the answer I'm looking for, but I always find something out, and most of the time, it's something I needed a while back.
Yep, I've seen that error quite a few times on numerous projects, it means that the object isn't affected by the methods or properties I'm trying to affect it with.
However, I was able to make it work by removing the () from the object variable isquare2.
idoc.GraphicStyles("02-S").ApplyTo isquare2
Thanks for the challenge Carlos!
North America
Europe, Middle East and Africa
Asia Pacific