Jump to content

MS Word Form Letter Help Needed


Recommended Posts

I'm looking for a method to populate a form letter with data from stored variables.

Here's a piece of my form letter...

zfirstname zlastname

zstreet

zcity, ID zzipcode

Dear zsal zlastname:

I've tried to use the following code to find and replace, but when I paste the variable into the replace text box, it seems to be including an <ENTER> too. Is there a more efficient way of populating a form letter with variables from my script?

WinActivate("life quote letter_variables.doc - Microsoft Word")

WinWaitActive("life quote letter_variables.doc - Microsoft Word")

send("^h")

WinWaitActive("Find and Replace")

send("zfirstname{tab}")

send($firstname)

Thanks for the help

Edited by socceraddict
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...