A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Author" property empty when using VBS macro/add-in



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2005, 08:25 AM
Ross
external usenet poster
 
Posts: n/a
Default "Author" property empty when using VBS macro/add-in

I've created a small PPT add-in with a button that creates a presentation
based on our corporate template.

For this button I've used VBS Presentations.Open command stating the
location of the .pot file that is our corporate temlate.
e.g.
Sub New_presentation()
Presentations.Open Filename:="\\Server\Templates\Company presentation.pot",
Untitled:=msoTrue
End Sub

The problem is that new presentations created using the add-in and do not
contain author's name in file properties. The "author" field in the original
..pot file is blank.

When a new presentation is created from the same template without the use of
the add-in the authors name shows up correctly.

Did I do anything wrong? How should I approach this problem? Did anyone have
the same issue?

Thans,

Ross
  #2  
Old April 20th, 2005, 03:48 PM
Steve Rindsberg
external usenet poster
 
Posts: n/a
Default

In article , Ross wrote:
I've created a small PPT add-in with a button that creates a presentation
based on our corporate template.

For this button I've used VBS Presentations.Open command stating the
location of the .pot file that is our corporate temlate.
e.g.
Sub New_presentation()
Presentations.Open Filename:="\\Server\Templates\Company presentation.pot",
Untitled:=msoTrue
End Sub

The problem is that new presentations created using the add-in and do not
contain author's name in file properties. The "author" field in the original
..pot file is blank.

When a new presentation is created from the same template without the use of
the add-in the authors name shows up correctly.

Did I do anything wrong? How should I approach this problem? Did anyone have
the same issue?


Try:

With Presentations.Add(msoTrue)
.ApplyTemplate("your template here")
' creates a blank presentation then applies your template
' so far, no slides so
.Slides.Add Index:=1, Layout:=ppLayoutTitle ' or whichever you like
End With

One difference that might be important to you:
When you open a template you get all the template's content and formatting
When you open a blank and then APPLY the template, you get just the template's
formatting (ie, you won't get any slides, VBA etc, that are in the template)

You could also open a blank presentation (with no window) and pick up the
document properties you want to use, close the presentation, then apply the
properties to the real presentation you open next.

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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
In Bar Chart, can we display both figures and their respective %a. Airtel General Discussion 3 March 9th, 2005 03:35 PM
use a formula to create a empty cell Chas Charts and Charting 1 October 27th, 2004 11:14 PM
VBA Code problem error 9 Speedy General Discussion 19 October 15th, 2004 09:05 PM
When is an empty cell not really empty? prlaba Worksheet Functions 2 August 13th, 2004 05:54 PM


All times are GMT +1. The time now is 12:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.