Sign in to follow this  
Followers 0
autosc

Appnding word with Big Daddys UDF

4 posts in this topic

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

.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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 .

Share this post


Link to post
Share on other sites

Your welcome, glad I was able to help.

And thank you!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0