Re: Modify a .doc document with a macro without Word ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



gilleskoziel@xxxxxxxxx wrote:
Here is my problem:
I would like to modify several .doc documents (with a macro ?) in an
automated way (without opening word "with the hand"). Do you know is
there is an object in VBScript that could do that ?

hi Gilleskoziel,

Just to be clear about this, yes, you can modify word documents
without opening word "by hand". You can use the "word.application"
object. But "under-the-covers", when you use "word.application"
you are opening word "behind-the-scenes" and using the word
automation interface to script instead of typing in the changes.

In other words, you are not doing this "without word". If you
don't have (microsoft) word installed, the word automation
interface is not going to be available on your system.

cheers, jw
.



Relevant Pages

  • Re: VSS Automation - Creating New Project
    ... By "top level" I meant at the uppermost project level, ... Using the automation interface, I open the ... In the MSDN article "Microsoft Visual SourceSafe OLE Automation" ... there is a section about the database Open ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Modify a .doc document with a macro without Word ?
    ... Just to be clear about this, yes, you can modify word documents ... automation interface to script instead of typing in the changes. ... Even if you're running the script from an interactive account, ... each page to it's own RTF file (I'll auto-number each file for ...
    (microsoft.public.scripting.vbscript)
  • Re: Pls Help: Automatically Remove Detected Dependencies?!??
    ... This seems to be specific to VS and its automation interface, ... Phil Wilson ... > or automatically exclude detected dependencies through automation. ...
    (microsoft.public.dotnet.framework.setup)
  • Re: Sort out 70-292 MICROSOFT!!!
    ... VBScript is fair game, from the objective page.... ... Identify and modify the scope of a group ... It falls under automation along with the DS commands and CSVDE and LDIFDE ... > customers and forcing us to find other means of passing this exam. ...
    (microsoft.public.cert.exam.mcsa)
  • second thoughts
    ... If you are willing to resort to api calls... ... an automation interface, the progid is: ... There is also an excel "object model", ...
    (microsoft.public.vb.winapi)