Tyreco
01-17-2017, 09:05 AM
Hi there,
i'm using a already coded excel file with macros (it was not created by me). via a button you can creat a automatic genereated word file.
now i want to change the header in the word file from a text to a picture
for this i used
Dim strLogo As String
...
strLogo = "C:Userslogo.png"
With .Sections(1)
'create header on the first page
.Headers(wdHeaderFooterFirstPage).Range.InlineShapes.AddPicture Filename:=strLogo, _
LinkToFile:=False, SaveWithDocument:=True
the picture shows up in the word file but i can't find any possibility to define it's position
would be nice to fix it with an absoulte position.
could anyone please help?
i'm using a already coded excel file with macros (it was not created by me). via a button you can creat a automatic genereated word file.
now i want to change the header in the word file from a text to a picture
for this i used
Dim strLogo As String
...
strLogo = "C:Userslogo.png"
With .Sections(1)
'create header on the first page
.Headers(wdHeaderFooterFirstPage).Range.InlineShapes.AddPicture Filename:=strLogo, _
LinkToFile:=False, SaveWithDocument:=True
the picture shows up in the word file but i can't find any possibility to define it's position
would be nice to fix it with an absoulte position.
could anyone please help?