Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i change the size picture in a word doc from vbscript?

Status
Not open for further replies.

diembi

Programmer
Sep 22, 2001
238
ES
Hello!!
How can i change the size picture in a word doc from vbscript?

I'm trying change the size picture with the next code but an error is displayed

oSelection.InlineShapes.AddPicture "gemelas.bmp",False,True

oSelection.InlineShapes(1).Height = 128.4
oSelection.InlineShapes(1).Width = 186.25

Thanks people!
 
Hello and thanks!!

The code for that is:

oSelection.InlineShapes.AddPicture "gemelas.bmp",False,True

oDoc.InlineShapes(1).Height = 128.4
oDoc.InlineShapes(1).Width = 186.25

Now the error isn't displayed!!!


Bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top