M
Martin Stockwell
Working with Word 2007...
i have a macro that runs, and depending on what 2 other boxes have in them
it completes a sql query from BCM 2007 (with custom fields) and places the
results in the specifed Content controls. (no xml is necessary, and has all
been done with a few lines of VBA)....
However, what is the correct code for automatically making the picture
content control a picture...
for instance.....
ActiveDocument.ContentControls.Item(7).Range.Text = "hello world"
adds text to the content control item 7... (which is a text control)
but what is it for a picture control... i thought it might be something like
ActiveDocument.ContentControls.Item(8).Range.InsertFile
("c:\helloworld.gif")
but it errors.... what should it be....
thanks...
i have a macro that runs, and depending on what 2 other boxes have in them
it completes a sql query from BCM 2007 (with custom fields) and places the
results in the specifed Content controls. (no xml is necessary, and has all
been done with a few lines of VBA)....
However, what is the correct code for automatically making the picture
content control a picture...
for instance.....
ActiveDocument.ContentControls.Item(7).Range.Text = "hello world"
adds text to the content control item 7... (which is a text control)
but what is it for a picture control... i thought it might be something like
ActiveDocument.ContentControls.Item(8).Range.InsertFile
("c:\helloworld.gif")
but it errors.... what should it be....
thanks...