I am trying to set a background texture programmatically in Word 2002, but it's not working.
Well, after many failed attempts, I am just trying a bare hard-code. Yet, it is still not working.
I tried the same thing to change Word background from VB, but failed.
Actually a similar attempt with PowerPoint also failed.
When I change the background manually using the same picture as user texture, it works perfectly.
What am I missing here?
_______________________________________
Eman_2005
Technical Communicator
Well, after many failed attempts, I am just trying a bare hard-code. Yet, it is still not working.
Code:
myFile = "C:\myBackgrounds\myPatternImage.jpg"
ActiveDocument.Background.Fill.UserTextured myFile
Actually a similar attempt with PowerPoint also failed.
When I change the background manually using the same picture as user texture, it works perfectly.
What am I missing here?
_______________________________________
Eman_2005
Technical Communicator