PC Review


Reply
Thread Tools Rate Thread

Create a macro in ppt 97 to open a new presentation

 
 
Co
Guest
Posts: n/a
 
      29th May 2007
Hi All,

I need to make a macro in powerpoint that opens a new presentation,
chooses a blanco slide and then clicks
cancel. However when there is no presentation opened I can't use the
macro recorder.

Marco

 
Reply With Quote
 
 
 
 
David M. Marcovitz
Guest
Posts: n/a
 
      29th May 2007
I'm not quite sure what you are trying to do, but why can't you record a
macro with the a presentation open? I get something like this doing wheat
I think you might have in mind (I'm using PPT 2003 so it might not be
exactly the same):

Sub Macro1()
Presentations.Add WithWindow:=msoTrue
ActiveWindow.View.GotoSlide Index:=ActivePresentation.Slides.Add
(Index:=1, Layout:=ppLayoutTitle).SlideIndex
ActiveWindow.Selection.SlideRange.Layout = ppLayoutBlank
End Sub

Watch out for linebreaks introduced by the news system.

--David
--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/

Co <(E-Mail Removed)> wrote in news:1180434931.757054.317650
@p47g2000hsd.googlegroups.com:

> Hi All,
>
> I need to make a macro in powerpoint that opens a new presentation,
> chooses a blanco slide and then clicks
> cancel. However when there is no presentation opened I can't use the
> macro recorder.
>
> Marco
>
>


 
Reply With Quote
 
Co
Guest
Posts: n/a
 
      30th May 2007
On 29 mei, 16:56, "David M. Marcovitz" <marcoNOS...@loyola.edu> wrote:
> I'm not quite sure what you are trying to do, but why can't you record a
> macro with the a presentation open? I get something like this doing wheat
> I think you might have in mind (I'm using PPT 2003 so it might not be
> exactly the same):
>
> Sub Macro1()
> Presentations.Add WithWindow:=msoTrue
> ActiveWindow.View.GotoSlide Index:=ActivePresentation.Slides.Add
> (Index:=1, Layout:=ppLayoutTitle).SlideIndex
> ActiveWindow.Selection.SlideRange.Layout = ppLayoutBlank
> End Sub
>
> Watch out for linebreaks introduced by the news system.
>
> --David
> --
> David M. Marcovitz
> Microsoft PowerPoint MVP
> Director of Graduate Programs in Educational Technology
> Loyola College in Maryland
> Author of _Powerful PowerPoint for Educators_http://www.PowerfulPowerPoint.com/
>
> Co <vonclausow...@gmail.com> wrote in news:1180434931.757054.317650
> @p47g2000hsd.googlegroups.com:
>
>
>
> > Hi All,

>
> > I need to make a macro in powerpoint that opens a new presentation,
> > chooses a blanco slide and then clicks
> > cancel. However when there is no presentation opened I can't use the
> > macro recorder.

>
> > Marco- Tekst uit oorspronkelijk bericht niet weergeven -

>
> - Tekst uit oorspronkelijk bericht weergeven -


That's the whole point. I want to do this with no presentation opened,
just the ppt window.
I have the code under a floating button ad I want it to open a new
presentation.

Marco

 
Reply With Quote
 
David M. Marcovitz
Guest
Posts: n/a
 
      30th May 2007
Co <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> On 29 mei, 16:56, "David M. Marcovitz" <marcoNOS...@loyola.edu> wrote:
>> I'm not quite sure what you are trying to do, but why can't you
>> record a macro with the a presentation open? I get something like
>> this doing wheat I think you might have in mind (I'm using PPT 2003
>> so it might not be exactly the same):
>>
>> Sub Macro1()
>> Presentations.Add WithWindow:=msoTrue
>> ActiveWindow.View.GotoSlide Index:=ActivePresentation.Slides.Add
>> (Index:=1, Layout:=ppLayoutTitle).SlideIndex
>> ActiveWindow.Selection.SlideRange.Layout = ppLayoutBlank
>> End Sub
>>
>> Watch out for linebreaks introduced by the news system.
>>
>> --David
>> --
>> David M. Marcovitz
>> Microsoft PowerPoint MVP
>> Director of Graduate Programs in Educational Technology
>> Loyola College in Maryland
>> Author of _Powerful PowerPoint for
>> Educators_http://www.PowerfulPowerPoint.com/
>>
>> Co <vonclausow...@gmail.com> wrote in news:1180434931.757054.317650
>> @p47g2000hsd.googlegroups.com:
>>
>>
>>
>> > Hi All,

>>
>> > I need to make a macro in powerpoint that opens a new presentation,
>> > chooses a blanco slide and then clicks
>> > cancel. However when there is no presentation opened I can't use
>> > the macro recorder.

>>
>> > Marco- Tekst uit oorspronkelijk bericht niet weergeven -

>>
>> - Tekst uit oorspronkelijk bericht weergeven -

>
> That's the whole point. I want to do this with no presentation opened,
> just the ppt window.
> I have the code under a floating button ad I want it to open a new
> presentation.
>
> Marco
>
>


Yes, but recording with a presentation open will help you get the code
you need. Then, if you want to run it without any presentation open, you
will need to incoroporate it into an add-in. See some information about
creating an addin here:

Create an ADD-IN with TOOLBARS that run macros
http://www.pptfaq.com/FAQ00031.htm

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to create a hyperlink to open a presentation to a particular emlweinstein Microsoft Powerpoint 1 10th Oct 2008 05:08 PM
Re: How to create a macro to open a new application Bob Phillips Microsoft Excel Misc 0 22nd Jan 2007 05:25 PM
How would I create a macro that will open an .xls? =?Utf-8?B?QWRhbVo=?= Microsoft Access Macros 3 21st Sep 2006 09:18 PM
Create a Macro to Open another Database =?Utf-8?B?Y29ubmll?= Microsoft Access Macros 1 25th Jan 2006 06:26 PM
Create a macro to Open Hypenlinks =?Utf-8?B?bWFwZXJhbGlh?= Microsoft Excel Programming 1 20th Sep 2005 02:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:30 AM.