Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Center-Align a Picture in a Word DocumentContent of Center-Align a Picture in a Word Document.vbsMD5 Hash: 74099E123EDEA52FC0998CCFB1FB8D5B |
||
Const wdShapeCenter = -999995
Const wdWrapSquare = 0 Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = objWord.Documents.Add() Set objShape = objDoc.Shapes objShape.AddPicture("C:\Scripts\Welder-small.jpg") Set objShapeRange = objDoc.Shapes.Range(1) objShapeRange.Left = wdShapeCenter objShapeRange.WrapFormat.Type = wdWrapSquare | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |