Global Update

S

swje

Is the a powerpoint object can save some comman content,
when I change the content outside, can programbaly change all the object
content
in a powerpoint file?

Thanks in advance!
 
S

swje

Thank you, Steve.
my thing is like this,eg: a compnay name is exist in a ppt file many times,
when I modify it in one place, all the name can changed together. the name
need to save
in a object and can be programable control.

Thanks
 
S

swje

Thank you Steve, we develop a program to manage the powerpoint file,
just as you suggested method: store the company name as a tag in a
presentation or in document properties; your code could search for e.g.
@COMPANY@ in the text in your presentation and replace it with the name from
properties.

Our Powerpoint file may like this: Company name: @ABC@. ABC can change by
code, tag property may not work,it can't display; is any more document
property information for me. I find a VBA example:
Application.ActivePresentation.CustomDocumentProperties _
.Add Name:="Complete", LinkToContent:=False, _
Type:=msoPropertyTypeBoolean, Value:=False

in c#, CustomDocumentProperties doesn't has the Add method. Is there any
other properties
can serve this function.

Thanks for your help!
 
S

swje

Steve,
As you said store the company name as a tag, the tag value can't display,
use it as a source of data, how can the data be connected with the tag.
would you please
give me some code to explain.

I have another question to ask you, in word and excel, the commandbars
index in fixed,
eg. menubar in word the index is 41, commandbars[41], excel menu bar is
commandbars[1], they are fixed. However in powerpoint the control index in
commandbars is dynamic,eg. menubar in one computer is commandbars[4], in
other computer is commandbars[5], it's diffcult to find the
controls. Is powerpoint have property can fully locate the commandbar
control as word and excel?

Thanks advance!

swje
2007/8/3
 
S

swje

Steve,
Thanks for you great help

Steve Rindsberg said:
Steve,
As you said store the company name as a tag, the tag value can't display,
use it as a source of data, how can the data be connected with the tag.
would you please
give me some code to explain.

An example using the presentation:

' Add a tag
Call ActivePresentation.Tags.Add("CoName","My Company, Inc.")

' Display the tag data
MsgBox ActivePresentation.Tags("CoName")
I have another question to ask you, in word and excel, the commandbars
index in fixed,
eg. menubar in word the index is 41, commandbars[41], excel menu bar is
commandbars[1], they are fixed. However in powerpoint the control index in
commandbars is dynamic,eg. menubar in one computer is commandbars[4], in
other computer is commandbars[5], it's diffcult to find the
controls. Is powerpoint have property can fully locate the commandbar
control as word and excel?

For built-in commandbars, the .Name should be enough ( but .NameLocal gives you the
localised name of the commandbar)

Thanks advance!

swje
2007/8/3

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 
S

swje

Steve,
I need a powerpoint object to store a company name and can be changed by
code, and can display it self in presentation, not to show it outside use
Msgbox.

Thanks!

Steve Rindsberg said:
Steve,
As you said store the company name as a tag, the tag value can't display,
use it as a source of data, how can the data be connected with the tag.
would you please
give me some code to explain.

An example using the presentation:

' Add a tag
Call ActivePresentation.Tags.Add("CoName","My Company, Inc.")

' Display the tag data
MsgBox ActivePresentation.Tags("CoName")
I have another question to ask you, in word and excel, the commandbars
index in fixed,
eg. menubar in word the index is 41, commandbars[41], excel menu bar is
commandbars[1], they are fixed. However in powerpoint the control index in
commandbars is dynamic,eg. menubar in one computer is commandbars[4], in
other computer is commandbars[5], it's diffcult to find the
controls. Is powerpoint have property can fully locate the commandbar
control as word and excel?

For built-in commandbars, the .Name should be enough ( but .NameLocal gives you the
localised name of the commandbar)

Thanks advance!

swje
2007/8/3

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 

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