Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > Excel to PowerPoint VBScript


Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2009, 07:46 PM
fresko fresko is offline
Newcomer
 
Join Date: Feb 2009
Posts: 2
Default Excel to PowerPoint VBScript


Hi guys,

This is my first post, looking forward to interact in this forum. Thank you for having me.

Onto my query, I am running a vbscript from Excel 2007 where it opens PowerPoint to do some functions. I have a very simple issue, I am trying to create a new BLANK slide, i.e. without the title and the body frames so I can paste in all these charts. I am able to get all the charts in, however I wanted to avoid going back into the slides and remove those frames. Here is how I am creating the slides:

Dim mySlide

mySlide = 0

Do Until mySlide = 3
mySlide = mySlide + 1
xlWrkBook.Worksheets(mySlide).ChartObjects(1).CopyPicture
Set lCurrSlide = ppSlideShow.Slides.Add(mySlide, 1)
lCurrSlide = ppSlideShow.Slides.Item(mySlide).Select()
ppApp.ActiveWindow.View.Paste
Loop

The line that creates my slides is:

Set lCurrSlide = ppSlideShow.Slides.Add(mySlide, 1)

Any ideas how to create a BLANK slide rather than the standard one with the heading and body? If you guys could help, that would be much appreciated.

Many thanks.

Miguel
Reply With Quote
  #2  
Old 03-03-2009, 09:49 PM
fresko fresko is offline
Newcomer
 
Join Date: Feb 2009
Posts: 2
Default

Don't worry about it, I have managed to fix it by using (Layout:=12)

Ta
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->