PDA

View Full Version : Moved: VBA: Picture in Word-Header? Position?



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?

Leith Ross
01-17-2017, 11:20 AM
Hello Tryreco,

You probably didn't realize you should not multi-post or crosspost a question. You can read it about in the FAQ section.

You also posted this same question at The Excel Forum (http://www.excelforum.com/showthread.php?t=1170111)

macropod
01-17-2017, 03:55 PM
Thread closed. Please continue the discussion in your other thread: http://www.vbaexpress.com/forum/showthread.php?58271-Moved-VBA-Picture-in-Word-Header-Position