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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
"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
|
|||
|
|||
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 | |
|
|
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 |