Help! I am drawing a blank!

  • Thread starter Thread starter Coogrr
  • Start date Start date
C

Coogrr

I want a macro that always inserts a new slide after the selected
slide. I don't think I need the Index:= command unless I can figure out
how to make it reflect the selected side each time.

Here is what I have and it inserts a new slide after the #2 slide each
time.


'Insert new slide'
'
ActivePresentation.Slides.Add(Index:=2, Layout:=ppLayoutText).Select
ActiveWindow.Selection.SlideRange.Layout = ppLayoutBlank

Any ideas on how to change this to make it do what I need it to do?

Thanks,

Dennis
 
I give up. When I ask a question in the Office forum I am told to post
it here and vice-versa.

If I knew all the ins and outs of where to post I probably woudn't need
to ask the question in the first place.

Dennis
 
Ok, I see your point but this was my reasoning for the answer I gave...

#1 VB.NET is not a macro language.
#2 This forum is for VB.NET and not for the scripting languages that come
with your office products.
#3 If you're using the office PIAs to access functionality in PowerPoint
then it's possible that you're in the right forum but specifying that you're
writing a macro in the first sentence doesn't convey the correct message.
#4 The people in the office forums should be able to guide you around the
office object model regardless of the programming language you use.

Given that information can you confirm in which domain you're actually
working??

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

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

Back
Top