How to store Metadata in the PowerPoint Presentation (2000, XP, 2003)

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

I'm trying to find some way to store Metadata inside the PowerPoint
presentation. I am looking solution for PowerPoint 2000, XP, 2003 versions.
The only way I found is to save it in Custom Properties, but it have size
limitation to 255 characters, so it not useful for me. In Word document I
found something calls Variable, which solves me the problem. Is exist
similar solution for PPT? It can be different solution for different
PowerPoint versions.

I'm programming in C# with Office Object Model

P.S I'm looking for same solution in Excel Sheets too.

Thanks.
 
B

Bob Phillips

See other thread

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
S

Steve Rindsberg

I'm trying to find some way to store Metadata inside the PowerPoint
presentation. I am looking solution for PowerPoint 2000, XP, 2003 versions.
The only way I found is to save it in Custom Properties, but it have size
limitation to 255 characters, so it not useful for me. In Word document I
found something calls Variable, which solves me the problem. Is exist
similar solution for PPT? It can be different solution for different
PowerPoint versions.

I'd avoid using custom properties in PPT for quite a few reasons.

Instead, use Tags

Any presentation, slide or shape can have any number of named tags, and each
tag can have pretty much any amount of text you like. You can use the same
code for all versions of PPT back to 97.

Ex:

Add a tag:

ActivePresentation.Slides(1).Tags.Add "TagName", "Tag Value"

Read a tag:

Msgbox ActivePresentation.Slides(1).Tags("TagName")

If you attempt to read a tag that isn't there, you simply get a null back; no
error results.
 

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