Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Writing VBA code in Excel to Print Power point slides, and a PDF r

Creating a print control file and printing reports from excel, power point
acrobat
was wondering if there was a way to priting the non excel reports using vba
written in excel
--
Helping Is always a good thing
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Writing VBA code in Excel to Print Power point slides, and a PDF r

One approach would be to use automation:

http://support.microsoft.com/support...aqVBOffice.asp
Frequently Asked Questions about Microsoft Office Automation Using Visual
Basic


http://support.microsoft.com/support...fdevinapps.asp
Programming Office from Within Office


http://support.microsoft.com/?id=167223
Microsoft Office 97 Automation Help File Available on MSL

--
Regards,
Tom Ogilvy




"QuietMan" wrote:

Creating a print control file and printing reports from excel, power point
acrobat
was wondering if there was a way to priting the non excel reports using vba
written in excel
--
Helping Is always a good thing

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Writing VBA code in Excel to Print Power point slides, and a P

Tom thanks for the links, but the first 2 are not working
--
Helping Is always a good thing


"Tom Ogilvy" wrote:

One approach would be to use automation:

http://support.microsoft.com/support...aqVBOffice.asp
Frequently Asked Questions about Microsoft Office Automation Using Visual
Basic


http://support.microsoft.com/support...fdevinapps.asp
Programming Office from Within Office


http://support.microsoft.com/?id=167223
Microsoft Office 97 Automation Help File Available on MSL

--
Regards,
Tom Ogilvy




"QuietMan" wrote:

Creating a print control file and printing reports from excel, power point
acrobat
was wondering if there was a way to priting the non excel reports using vba
written in excel
--
Helping Is always a good thing

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Writing VBA code in Excel to Print Power point slides, and a P

the third one should be sufficient, but if you want mo

http://msdn.microsoft.com/library/en...plications.asp

--
Regards,
Tom Ogilvy


"QuietMan" wrote:

Tom thanks for the links, but the first 2 are not working
--
Helping Is always a good thing


"Tom Ogilvy" wrote:

One approach would be to use automation:

http://support.microsoft.com/support...aqVBOffice.asp
Frequently Asked Questions about Microsoft Office Automation Using Visual
Basic


http://support.microsoft.com/support...fdevinapps.asp
Programming Office from Within Office


http://support.microsoft.com/?id=167223
Microsoft Office 97 Automation Help File Available on MSL

--
Regards,
Tom Ogilvy




"QuietMan" wrote:

Creating a print control file and printing reports from excel, power point
acrobat
was wondering if there was a way to priting the non excel reports using vba
written in excel
--
Helping Is always a good thing

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Writing VBA code in Excel to Print Power point slides, and a P

Tom

here is waht I came up with, but cannot get it to work
very new at this, and the excel 97 examples don't work either

Sub Macro1()
Dim pptApp As PowerPoint.Application
Dim pptPres As PowerPoint.Presentation
Set pptApp = CreateObject("PowerPoint.Application")
Set pptPres = pptApp.Presentations.Open("P:\Test\DRAFT.ppt")

With pptPres.PrintOptions
.RangeType = ppPrintSlideRange
With .Ranges
.ClearAll
.Add Start:=3, End:=3
.Add Start:=8, End:=8
.Add Start:=11, End:=11
.Add Start:=14, End:=14
End With
.NumberOfCopies = 1
.Collate = msoTrue
.OutputType = ppPrintOutputSlides
.PrintHiddenSlides = msoTrue
.PrintColorType = ppPrintColor
.FitToPage = msoFalse
.FrameSlides = msoFalse
.ActivePrinter = "\\strnynt32\STHQPB_4003B2"
End With
Active
--
Helping Is always a good thing


"Tom Ogilvy" wrote:

the third one should be sufficient, but if you want mo

http://msdn.microsoft.com/library/en...plications.asp

--
Regards,
Tom Ogilvy


"QuietMan" wrote:

Tom thanks for the links, but the first 2 are not working
--
Helping Is always a good thing


"Tom Ogilvy" wrote:

One approach would be to use automation:

http://support.microsoft.com/support...aqVBOffice.asp
Frequently Asked Questions about Microsoft Office Automation Using Visual
Basic


http://support.microsoft.com/support...fdevinapps.asp
Programming Office from Within Office


http://support.microsoft.com/?id=167223
Microsoft Office 97 Automation Help File Available on MSL

--
Regards,
Tom Ogilvy




"QuietMan" wrote:

Creating a print control file and printing reports from excel, power point
acrobat
was wondering if there was a way to priting the non excel reports using vba
written in excel
--
Helping Is always a good thing



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Writing VBA code in Excel to Print Power point slides, and a P

Made some progress
but it bombs out at 'OutputType = ppPrintOutputSlides'
line in the code, any understanding?

Sub Macro1()
Dim pptApp As Object
Dim pptPres As Object

Set pptApp = CreateObject("PowerPoint.Application")
pptApp.Visible = True
Set pptPres = _
pptApp.presentations.Open("P:\Financial Planning &
Analysis\Month-QTR Support\2006\08 - Aug\Development Data\DRAFT- REG Deal
Pipeline Data Book - August 2006.v1.ppt")

With pptPres.PrintOptions
.RangeType = ppPrintSlideRange
With .Ranges
.ClearAll
.Add Start:=3, End:=3
.Add Start:=8, End:=8
.Add Start:=11, End:=11
.Add Start:=14, End:=14
End With
.NumberOfCopies = 1
.Collate = msoTrue
.OutputType = ppPrintOutputSlides
.PrintHiddenSlides = msoTrue
.PrintColorType = ppPrintColor
.FitToPage = msoFalse
.FrameSlides = msoFalse
.ActivePrinter = "\\strnynt32\STHQPB_4003B2"
End With
ActivepptPres.PrintOut
End Sub

--
Helping Is always a good thing


"Tom Ogilvy" wrote:

the third one should be sufficient, but if you want mo

http://msdn.microsoft.com/library/en...plications.asp

--
Regards,
Tom Ogilvy


"QuietMan" wrote:

Tom thanks for the links, but the first 2 are not working
--
Helping Is always a good thing


"Tom Ogilvy" wrote:

One approach would be to use automation:

http://support.microsoft.com/support...aqVBOffice.asp
Frequently Asked Questions about Microsoft Office Automation Using Visual
Basic


http://support.microsoft.com/support...fdevinapps.asp
Programming Office from Within Office


http://support.microsoft.com/?id=167223
Microsoft Office 97 Automation Help File Available on MSL

--
Regards,
Tom Ogilvy




"QuietMan" wrote:

Creating a print control file and printing reports from excel, power point
acrobat
was wondering if there was a way to priting the non excel reports using vba
written in excel
--
Helping Is always a good thing

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Writing VBA code in Excel to Print Power point slides, and a P

the constant ppPrintOutputSlides or any other constant in the powerpoint
object library will be undefined when using late binding such as you are
using. You will have to go into powerpoint and find what the value is and
use the value instead of the constant. Here are the values for the ones I
saw.

? ppPrintSlideRange
4
? ppPrintOutputSlides
1
? ppPrintColor
1

--
Regards,
Tom Ogilvy




"QuietMan" wrote in message
...
Made some progress
but it bombs out at 'OutputType = ppPrintOutputSlides'
line in the code, any understanding?

Sub Macro1()
Dim pptApp As Object
Dim pptPres As Object

Set pptApp = CreateObject("PowerPoint.Application")
pptApp.Visible = True
Set pptPres = _
pptApp.presentations.Open("P:\Financial Planning &
Analysis\Month-QTR Support\2006\08 - Aug\Development Data\DRAFT- REG Deal
Pipeline Data Book - August 2006.v1.ppt")

With pptPres.PrintOptions
.RangeType = ppPrintSlideRange
With .Ranges
.ClearAll
.Add Start:=3, End:=3
.Add Start:=8, End:=8
.Add Start:=11, End:=11
.Add Start:=14, End:=14
End With
.NumberOfCopies = 1
.Collate = msoTrue
.OutputType = ppPrintOutputSlides
.PrintHiddenSlides = msoTrue
.PrintColorType = ppPrintColor
.FitToPage = msoFalse
.FrameSlides = msoFalse
.ActivePrinter = "\\strnynt32\STHQPB_4003B2"
End With
ActivepptPres.PrintOut
End Sub

--
Helping Is always a good thing


"Tom Ogilvy" wrote:

the third one should be sufficient, but if you want mo

http://msdn.microsoft.com/library/en...plications.asp

--
Regards,
Tom Ogilvy


"QuietMan" wrote:

Tom thanks for the links, but the first 2 are not working
--
Helping Is always a good thing


"Tom Ogilvy" wrote:

One approach would be to use automation:

http://support.microsoft.com/support...aqVBOffice.asp
Frequently Asked Questions about Microsoft Office Automation Using
Visual
Basic


http://support.microsoft.com/support...fdevinapps.asp
Programming Office from Within Office


http://support.microsoft.com/?id=167223
Microsoft Office 97 Automation Help File Available on MSL

--
Regards,
Tom Ogilvy




"QuietMan" wrote:

Creating a print control file and printing reports from excel,
power point
acrobat
was wondering if there was a way to priting the non excel reports
using vba
written in excel
--
Helping Is always a good thing



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
link Excel / Power Point bbb Excel Discussion (Misc queries) 1 March 7th 06 07:44 PM
Excel to Power Point slides p. panter Excel Programming 1 February 14th 06 10:19 PM
pie charting through excel, using power point carver922 New Users to Excel 2 May 10th 05 09:00 PM
Excel VBA with power point? Malcom Jazz[_2_] Excel Programming 2 January 8th 05 01:39 PM


All times are GMT +1. The time now is 11:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"