Hi, Is there a way to randomize the wordart PresetTextEffect (i.e. msoTextEffect1, msoTextEfect20, etc..)?
This is what I have so far, but does not work.
Thanks for the time,Please Login or Register to view this content.
Nick
Hi, Is there a way to randomize the wordart PresetTextEffect (i.e. msoTextEffect1, msoTextEfect20, etc..)?
This is what I have so far, but does not work.
Thanks for the time,Please Login or Register to view this content.
Nick
Just put the randomization directly into the argument:
Please Login or Register to view this content.
Hope that helps,
~tigeravatar
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
Nick
You can't refer to a constant using a string variable.
What I might do is create an array of all the msoTextEffect constants, then use the random number to select which item in the array to use.
Please Login or Register to view this content.
If posting code please use code tags, see here.
Oops, never realised that msoTextEffect1, msoTextEffect2... had the values 0,1...
Yeah, I had to look it up real quick too to be sure, used this for reference: http://msdn.microsoft.com/en-us/libr...ice.12%29.aspx
I actually looked in the Object Browser, obviously not close enough though.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks