autosc Posted January 5, 2007 Share Posted January 5, 2007 how can execute carrige return when appending text to word : using Big Daddys word.au3 code : $sText1 = "zip code 123456789 " $sText2 = "adress" $sText3 = "name" $sText2 = "." All variables print on the same line . i want them to be printed: zip code 123456789 adress name . Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 5, 2007 Moderators Share Posted January 5, 2007 Like this? #include <Word.au3> $oWordApp = _WordCreate () $oDoc = _WordDocGetCollection ($oWordApp, 0) $sText = "zip code 123456789 " & @CR $sText &= "adress" & @CR $sText &= "name" & @CR $sText &= "." $oDoc.Range.Text = $sText Link to comment Share on other sites More sharing options...
autosc Posted January 5, 2007 Author Share Posted January 5, 2007 Thank you ! Big Daddy ! You have a Superb UDF with documentation and examples . and excellent support ! From now on i will read the Help file(word.au3 ) from bottom up , before asking questions . Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 5, 2007 Moderators Share Posted January 5, 2007 Your welcome, glad I was able to help. And thank you! 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