Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2015, 12:58 AM
blake20 blake20 is offline VB Printing command in PowerPoint Windows Vista VB Printing command in PowerPoint Office 2010 32bit
Novice
VB Printing command in PowerPoint
 
Join Date: May 2015
Posts: 6
blake20 is on a distinguished road
Question VB Printing command in PowerPoint

I am new in PowerPoint (2007). So i am somewhat suprised that i cant make a macro recording In PP.
So how do i make a printing command in VB in PP.
Every time i go to the macro recorder PP goes to the VB script screen.



I have tried to make Print commands but it doesn't work.

Can somebody help in the right direction?

Last edited by blake20; 07-28-2015 at 01:46 AM. Reason: Evident fault
Reply With Quote
  #2  
Old 07-28-2015, 02:58 AM
JohnWilson JohnWilson is offline VB Printing command in PowerPoint Windows 7 64bit VB Printing command in PowerPoint Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

the macro recorder hasn't worked well for quite a while as PPT got progressively more complex and was eventually scrapped.

You need to say WHAT you want to print but here are some ideas

PRINT IT ALL AS SLIDE IMAGES

Sub PRNT_ALL()
With ActivePresentation.PrintOptions
.OutputType = ppPrintOutputSlides
.RangeType = ppPrintAll
End With
ActivePresentation.PrintOut
End Sub

PRINT SOME SLIDES (2-3)

Sub PRNT_2and3()
With ActivePresentation.PrintOptions
.OutputType = ppPrintOutputSlides
.RangeType = ppPrintSlideRange
.Ranges.ClearAll ' always clear old settings
.Ranges.Add Start:=2, End:=3
End With
ActivePresentation.PrintOut
End Sub

PRINT THE CURRENT SLIDE IN SHOW MODE

Sub PRNT_CURRENT_SHOWMODE()
Dim curr As Long
curr = SlideShowWindows(1).View.CurrentShowPosition
' This is only for printing in show
' it will error in edit mode
' Never use ppPrintCurrent in show mode
' it refers to the current slide in edit mode which may be different
With ActivePresentation.PrintOptions
.OutputType = ppPrintOutputSlides
.RangeType = ppPrintSlideRange
.Ranges.ClearAll ' alway clear old settings
.Ranges.Add Start:=curr, End:=curr
End With
ActivePresentation.PrintOut
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 07-28-2015, 04:22 AM
blake20 blake20 is offline VB Printing command in PowerPoint Windows Vista VB Printing command in PowerPoint Office 2010 32bit
Novice
VB Printing command in PowerPoint
 
Join Date: May 2015
Posts: 6
blake20 is on a distinguished road
Default

Thank you verry much!
ik can work with this!
I did not realize that they scrapped the macro recorder.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Powerpoint 2011 printing problems jerryny PowerPoint 0 03-31-2015 09:17 PM
VB Printing command in PowerPoint Calling a macro in powerpoint from command line SeattleITguy PowerPoint 4 11-26-2014 01:41 AM
Printing hi res images from powerpoint to pdf output? miriamallen PowerPoint 0 02-29-2012 09:54 AM
Powerpoint printing issues DWeuve PowerPoint 0 10-04-2011 08:14 AM
Powerpoint printing issue eidius PowerPoint 1 01-13-2011 07:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft