Global Update

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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?

If you have content linked from, say, Excel to PPT, then when you change the
source Excel worksheet, the PPT content will update when you open the PPT next
time.

Is that the kind of thing you're after?
 
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
 
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.

I'm not sure exactly what you mean by object in this case. Can you explain more?

Where would the program code be running? In an add-in within PowerPoint itself or
somewhere else?

You could 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.
 
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!
 
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;

You wouldn't display the tag, just use it as a source of data.

is any more document
 
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
 
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)
 
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
================================================
 
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
================================================
 
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.

Nearly any shape in PPT can include text; the text can be changed by code.

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

:

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;

You wouldn't display the tag, just use it as a source of data.

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!

:

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.

I'm not sure exactly what you mean by object in this case. Can you explain more?

Where would the program code be running? In an add-in within PowerPoint itself or
somewhere else?

You could 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.


Thanks

:

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?

If you have content linked from, say, Excel to PPT, then when you change the
source Excel worksheet, the PPT content will update when you open the PPT next
time.

Is that the kind of thing you're after?

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





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





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

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