Re: copy full screen PowerPoint slideshow image and paste into MS Word through vba code



On Mar 8, 7:27 pm, Steve Rindsberg <ab...@xxxxxxxxxxxxx> wrote:
In article <f695a98e-90d2-4e44-883e-33e33979c...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,





Rc wrote:
I am trying to view a slide full screen and then print screen or
capture the screen
then change to Word
then paste the image into Word
return to ppt and repeat for the all slides
The code below gets started but the screenshot is not the full screen
and the paste part is not working.
I can't use any utilites like snagit on these PCs. Any ideas for vb
code to paste into Word from PPT?
==========================================
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal
_
  bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)

Private Const VK_SNAPSHOT = &H2C

Sub PrintScreen()
ActivePresentation.SlideShowSettings.Run
keybd_event VK_SNAPSHOT, 1, 0, 0

ReturnValue = Shell("winword.EXE", 1)
SendKeys "^(v)"
End Sub

Wouldn't you be better off using PowerPoint's Slide.Export method to export the
slide to a graphics file, then import that into Word programmatically?

--
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================- Hide quoted text -

- Show quoted text -
Thanks for your response.
I tried saving the slides in various graphic formats and inserting
them into Word and the quality is not as good as when I used full-
screen, print-screen, copy and paste. Is there a programmatic way to
export that can provide high quality?
.



Relevant Pages

  • Re: copy full screen PowerPoint slideshow image and paste into MS Word through vba code
    ... The code below gets started but the screenshot is not the full screen ... code to paste into Word from PPT? ... I tried saving the slides in various graphic formats and inserting ... them into Word and the quality is not as good as when I used full- ...
    (microsoft.public.office.developer.vba)
  • Re: copy full screen PowerPoint slideshow image and paste into MS Word through vba code
    ... return to ppt and repeat for the all slides ... The code below gets started but the screenshot is not the full screen ... code to paste into Word from PPT? ... Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ...
    (microsoft.public.office.developer.vba)
  • Re: copy full screen PowerPoint slideshow image and paste into MS Word through vba code
    ... The code below gets started but the screenshot is not the full screen ... code to paste into Word from PPT? ... I tried saving the slides in various graphic formats and inserting ... something like IrfanView from the command line to batch downsample images). ...
    (microsoft.public.office.developer.vba)
  • Re: Managing a PPT project judiciously
    ... has worked flawlessly for me for literally millions of pages in PPT. ... folder structure is critical as you point out. ... In Excel or in PPT? ... >kind of reports having lets say Y slides and then Z number of Class 2 kind ...
    (microsoft.public.powerpoint)
  • Re: Managing a PPT project judiciously
    ... In Excel or in PPT? ... > Then I will have various other folders to store stuff and keep it neat, ... >>kind of reports having lets say Y slides and then Z number of Class 2 kind ...
    (microsoft.public.powerpoint)