Whats the macro for printing from PowerPoint 2003 show action@

C

Carolrb

I am trying to develop a macro to run from an action button which enables a
user to print a screen from a powerpoint show - if not from the "kiosk" mode.
Ideally I would like it to print the whole scrolling text box contents, but
if not just the visible section of an on screen text box would be really
helpful.
I am using Office 2003.
I have found a macro for Office 2000 - but I can't make that work.
Thanks
Carol
 
B

Brian Reilly, MVP

Here's a link to Shyam Pillai's web site to determine the slide you
are on in a Slide Show (or any other View).

http://skp.mvps.org/ppt00044.htm

Then you'd want to incorporate something like the following:

With ActivePresentation.PrintOptions
.RangeType = ppPrintSlideRange
With .Ranges
.ClearAll
.Add Start:=2, End:=2
End With
.NumberOfCopies = 1
.Collate = msoTrue
.OutputType = ppPrintOutputSlides
.PrintHiddenSlides = msoTrue
.PrintColorType = ppPrintColor
.FitToPage = msoFalse
.FrameSlides = msoFalse

End Wit .h
ActivePresentation.PrintOut

But change the hardcoded "2" for Start and End to the slidenumber
variable being returned from Shyam's code.

Note: if you leave the Printer unnamed like this, it will use the
default installed printer.

Brian Reilly, MVP
 
C

Carolrb

Brian your code works well - it is only going to be one page so finding the
slide being viewed is not an issue. I created an action button on top of a
picture background, used your code fro the macro and that prints fine. As
soon as I put a text box on the same page ( this a text box to be written
into from the show mode, it has c ontrols to enable mulitline, tab key use
and enter key use) the print button will no longer work. I must have a clash
- but did not realise that was possible.
 
B

Brian Reilly, MVP

Carol,
I'm not quite sure what this next problem is. I don't really
understand what you are doing. If you want to email me the file, I'll
take a look at it. Just drop the Not from my posted email address.

Brian Reilly, MVP
 

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

Top