fischadler
Programmer
I am trying to create a new Word document from visual basic and I need to add a picture and then resize it.
Usually when I need to do some process in Word, I record a macro and do the actions to get the code. Although I could create the picture while recording, I could not resize it. Therefore I cannot get the commands from the macro.
Below is the code for adding the picture:
Selection.InlineShapes.AddPicture FileName:="logo.jpg", _
LinkToFile:=False, SaveWithDocument:=True
What is the code for resizing the picture?
Thanks
Usually when I need to do some process in Word, I record a macro and do the actions to get the code. Although I could create the picture while recording, I could not resize it. Therefore I cannot get the commands from the macro.
Below is the code for adding the picture:
Selection.InlineShapes.AddPicture FileName:="logo.jpg", _
LinkToFile:=False, SaveWithDocument:=True
What is the code for resizing the picture?
Thanks