BennyJohansen
Technical User
- Feb 10, 2011
- 3
Hi and thanks for reading my problem
I am currently trying to make a corporate outlook signature through programming.
I am almost there, but I keep having one annoying problem that I can't solve.
In our outlook signature I have created a table and in one table cell I want to add multiple pictures with some space between.
Now when I add these pictures they seem to be inserted at the beginning of the cell, meaning I get the reversed order, this is probably part of the problem or related.
Let me show a snippet of the vb script:
Set TwitterImg = objTable.Cell(4,2).Range.InlineShapes.AddPicture("\\server\path\twitter.gif")
objTable.Cell(4,2).Range.Hyperlinks.Add TwitterImg, "objTable.Cell(4,2).Range.Collapse 0
objTable.Cell(4,2).Range.InsertAfter " - "
Set FacebookImg = objTable.Cell(4,2).Range.InlineShapes.AddPicture("\\server\path\facebook.gif")
objTable.Cell(4,2).Range.Hyperlinks.Add FacebookImg, "objTable.Cell(4,2).Range.Collapse 0
'objTable.Cell(4,2).Range.InsertAfter " - "
So the FacebookImg pictures gets 1. place and the 2 text inserts both end up after the 2 images.
It seems to be like it is something to do with the insertion pointer, but how do I program the insertion pointer/cursor inside a table cell?
Hope somebody can offer a hint or solution
Best regards
Benny
I am currently trying to make a corporate outlook signature through programming.
I am almost there, but I keep having one annoying problem that I can't solve.
In our outlook signature I have created a table and in one table cell I want to add multiple pictures with some space between.
Now when I add these pictures they seem to be inserted at the beginning of the cell, meaning I get the reversed order, this is probably part of the problem or related.
Let me show a snippet of the vb script:
Set TwitterImg = objTable.Cell(4,2).Range.InlineShapes.AddPicture("\\server\path\twitter.gif")
objTable.Cell(4,2).Range.Hyperlinks.Add TwitterImg, "objTable.Cell(4,2).Range.Collapse 0
objTable.Cell(4,2).Range.InsertAfter " - "
Set FacebookImg = objTable.Cell(4,2).Range.InlineShapes.AddPicture("\\server\path\facebook.gif")
objTable.Cell(4,2).Range.Hyperlinks.Add FacebookImg, "objTable.Cell(4,2).Range.Collapse 0
'objTable.Cell(4,2).Range.InsertAfter " - "
So the FacebookImg pictures gets 1. place and the 2 text inserts both end up after the 2 images.
It seems to be like it is something to do with the insertion pointer, but how do I program the insertion pointer/cursor inside a table cell?
Hope somebody can offer a hint or solution
Best regards
Benny