Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using perl to write to a bookmark in a word doc

Status
Not open for further replies.

greadey

Technical User
Joined
Oct 25, 2001
Messages
231
Location
GB
Hi all,

Does anyone know what code is to be used to write to a bookmark in Word with perl?

I've tried the following;

#Code opens word and makes it visible

$doc = $word->ActiveDocument;

$sel = $doc->bookmarks("bk1")->Select;

$doc->$sel->InsertAfer("here is some text");

perl seems to be complaining that $sel is not initialised.

 
What package do you use? And what is exactly the error?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top