S
Sean
My code to insert a picture is below. I have a 1row x
2column table in the header and I would like to place
this picture in the right column of the table. How can i
accomplish this using code?
Thanks.
With Dialogs(wdDialogInsertPicture)
If .Display Then
'Populate the DocProperty with file path
ActiveDocument.CustomDocumentProperties
("ClientLogPath").Value = WordBasic.FilenameInfo$(.Name,
1)
End If
End With
Dim oRng As Range
Set oRng = ActiveDocument.Sections(1).Headers
(wdHeaderFooterPrimary).Range
Selection.Collapse Direction:=wdCollapseStart
ActiveDocument.InlineShapes.AddPicture Range:=oRng, _
FileName:=ActiveDocument.CustomDocumentProperties
("ClientLogPath").Value
2column table in the header and I would like to place
this picture in the right column of the table. How can i
accomplish this using code?
Thanks.
With Dialogs(wdDialogInsertPicture)
If .Display Then
'Populate the DocProperty with file path
ActiveDocument.CustomDocumentProperties
("ClientLogPath").Value = WordBasic.FilenameInfo$(.Name,
1)
End If
End With
Dim oRng As Range
Set oRng = ActiveDocument.Sections(1).Headers
(wdHeaderFooterPrimary).Range
Selection.Collapse Direction:=wdCollapseStart
ActiveDocument.InlineShapes.AddPicture Range:=oRng, _
FileName:=ActiveDocument.CustomDocumentProperties
("ClientLogPath").Value