mark2004 Posted January 4, 2009 Share Posted January 4, 2009 Hi All.I'm trying to work with the Microsoft Word object model and am having trouble with the following statement:$oWordApp.Selection.TypeText Text:="Hello World"This syntax is apparently wrong in Autoit. I have been figuring out the Word Object Model by recording macros in Word and theninspecting the macro with the visual basic editor. Other object expressions have worked fine in Autoit but this one is spittingout an error during compile.Any ideas?Mark Link to comment Share on other sites More sharing options...
Developers Jos Posted January 4, 2009 Developers Share Posted January 4, 2009 Have you seen that there are a whole bunch of standard WORD UDF's available you can use and/or learn from? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
mark2004 Posted January 4, 2009 Author Share Posted January 4, 2009 Hi Jos.Thanks. Yes I am aware that the WORD UDF's are quite extensive. I am working with Autoit version 3.2.4.9 andcannot upgrade since my current script does not run right in the latest versions. So, I uninstalled and went back tothe older version. Upgrading my code to work with the latest version is on my todo list.So, I am currently limited to the WORD UDF's in the older version, and I haven't seen anything that would answer my question....Have you seen that there are a whole bunch of standard WORD UDF's available you can use and/or learn from?Jos Link to comment Share on other sites More sharing options...
mark2004 Posted January 4, 2009 Author Share Posted January 4, 2009 O.K. After some more random experimentation, I found the following syntax worked: $oWordApp.Selection.TypeText("Hello World") Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now