Adding, resizing and positioning PDF objects using PowerPoint 2007 VBA -


i have implemented following vba code insert pdf files slide.

sub popapdf()  dim osh shape dim osl slide dim sfilename string  sfilename = "pdf_file1.pdf" set osl = activepresentation.slides(1) ' or whatever want  ' assuming it's letter-sized/portrait pdf: set osh = osl.shapes.addoleobject(left:=0, _     top:=0, _     width:=8.5 * 72, _     height:=11# * 72, _     filename:=sfilename, _     link:=msofalse)  sfilename = "pdf_file2.pdf" set osl = activepresentation.slides(1) ' or whatever want  ' assuming it's letter-sized/portrait pdf: set osh = osl.shapes.addoleobject(left:=0, _     top:=0, _     width:=8.5 * 72, _     height:=11# * 72, _     filename:=sfilename, _     link:=msofalse)   sfilename = "pdf_file3.pdf" set osl = activepresentation.slides(1) ' or whatever want  ' assuming it's letter-sized/portrait pdf: set osh = osl.shapes.addoleobject(left:=0, _     top:=0, _     width:=8.5 * 72, _     height:=11# * 72, _     filename:=sfilename, _     link:=msofalse)  end sub 

i need append code following:

  • resize while keeping width/height ratio
  • distribute horizontally
  • center vertically

is possible them using macros?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -