Need to insert tag to create PPT reference

  • Thread starter christophercbrewster via OfficeKB.com
  • Start date
C

christophercbrewster via OfficeKB.com

Within a Word document, I need to refer to slide numbers in a Powerpoint
document. The PPT gets revised, so I need to update numbers in the Word doc.
I have macros to add a tag on a PPT slide, and to search for a tag and get
the current slide number for that tag. Now I need to put these tags in the
Word document, and have a macro to convert them to numbers (based on the PPT
search function). But I'm stumped-- I need a Word field that uses my tag as a
value to be used by the update macro, and I can't find a field that serves my
purpose. The purpose of the field would be something like "here's a value;
give me another value that's displayed as a result." Any suggestions
appreciated.

--
Christopher Brewster
Lockheed Martin, Eagan MN

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200810/1
 
C

christophercbrewster via OfficeKB.com

I'm responding to my own posting. Maybe each tag would be a doc variable,
whose value is the slide number. Would this work? Suggestions?
Within a Word document, I need to refer to slide numbers in a Powerpoint
document. The PPT gets revised, so I need to update numbers in the Word doc.
I have macros to add a tag on a PPT slide, and to search for a tag and get
the current slide number for that tag. Now I need to put these tags in the
Word document, and have a macro to convert them to numbers (based on the PPT
search function). But I'm stumped-- I need a Word field that uses my tag as a
value to be used by the update macro, and I can't find a field that serves my
purpose. The purpose of the field would be something like "here's a value;
give me another value that's displayed as a result." Any suggestions
appreciated.

--
Christopher Brewster
Lockheed Martin, Eagan MN

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200810/1
 
C

Cindy M.

Hi Christophercbrewster,
Within a Word document, I need to refer to slide numbers in a Powerpoint
document. The PPT gets revised, so I need to update numbers in the Word doc.
I have macros to add a tag on a PPT slide, and to search for a tag and get
the current slide number for that tag. Now I need to put these tags in the
Word document, and have a macro to convert them to numbers (based on the PPT
search function). But I'm stumped-- I need a Word field that uses my tag as a
value to be used by the update macro, and I can't find a field that serves my
purpose. The purpose of the field would be something like "here's a value;
give me another value that's displayed as a result."
I'm not sure I follow what you want to do with the information within the Word
document. And it would also help a lot if you had mentioned which version of
Office we're dealing with.

However, I can imagine you might need to work with the PPT slide info when the
document is not necessarily open in Word? In that case, I'd consider
CustomDocumentProperties. Using DSOFile you should be able to read/write them
in the closed document. From within Word they can be accessed via the object
model. And to display the values in the document (not clear if that's required,
or not) there's the DocProperty field.

An alternative approach, if we're talking Office 2003 or later, would be to
work with a document in Word's native XML (WordProcessingML) that would let you
access the contents of the closed file using standard XML parsing techniques.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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