#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Thank you verry much!
ik can work with this! I did not realize that they scrapped the macro recorder. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Powerpoint 2011 printing problems | jerryny | PowerPoint | 0 | 03-31-2015 09:17 PM |
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 |