VBA-Changing tag values

E

Edward

Hi Everybody,
Is there a way of changing tag values beside using (.Add) method over and
over again?

like
osld.Tags.Add "Region", "USA"
if I want to change the value of Region tag from "USA" to "Europe" , it
seems the only way possibile is to use the following code

osld.Tags.Add "Region", "Europe"

Because the tag name is the same fortunately VBA doesn't add a new tag , but
it changes the tag index (if I have 4 tags attached to the slide , when I use
add method to change any of the values , that specific tag index goes to the
end of the list, in this case 4 )
 
D

David Marcovitz

I don't know. But assuming there isn't a way to do what you want, I imagine
you could easily right a procedure that added all the tags back in the right
order. That is, replace osld.Tags.Add with a procedure that takes the same
parameters and cycles through the four tags in the right order, adding back
the same value for all the other tags except the one you want to change.
--David

Hi Everybody,
Is there a way of changing tag values beside using (.Add) method over and
over again?

like
osld.Tags.Add "Region", "USA"
if I want to change the value of Region tag from "USA" to "Europe" , it
seems the only way possibile is to use the following code

osld.Tags.Add "Region", "Europe"

Because the tag name is the same fortunately VBA doesn't add a new tag , but
it changes the tag index (if I have 4 tags attached to the slide , when I use
add method to change any of the values , that specific tag index goes to the
end of the list, in this case 4 )


--
David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Microsoft PowerPoint MVP
Associate Professor, Loyola University Maryland
 
E

Edward

Thanks, I was just wondering if there is a better way of changing tag values,
changing all tag values could be very slow if we have many tags , but in my
case this is not an issue at all
 

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