vbs question

  • Thread starter Thread starter Ana Rita
  • Start date Start date
A

Ana Rita

Hello to all.

I'm trying to create a word document, with this code in
vbs.

Set oWord = CreateObject("Word.Application")

With oWord

.documents.add(strPathDoc), true

Then I use the

..ActiveDocument.Bookmarks("xpto").Select
..Selection.TypeText "Hello"

To populate the bookmarks in my template.dot.

When I visualize the document "oWord.visible=true", it is
not read only.

I suppose that the "oWord.document.add(strPathDoc), true"
will set the document to read only, but I was wrong.

Can anyone help me?

Thanks.

Best wishes.

Ana Rita
 
This question has absolutely nothing to do with ASP.Net. You might want to
post it on an ASP newsgroup, or an Office newsgroup.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top