Sign in to follow this  
Followers 0
Leykis101

Select All contents in Microsoft word

3 posts in this topic

I have a program which generates a table in a word document based on my input to the program. I have 2 documents, a header.doc and a footer.doc. I need to do the following.

1) Open header.doc

2) Select All contents

3) Copy Selection

4) Paste in new document

5) Generate Table

6) Open footer.doc

7) Select All contents

8) Copy Selection

9) Paste in new document

I currently have steps 1,5,6 working. I know how to copy and paste, so 3,4,8,9 should not be a problem. 2 and 7 are where my issue lies. Please help!!

Share this post


Link to post
Share on other sites



Have you looked at Send("^a") ?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Wow I can't believe I didn't think of that. So Simple, yet effective. If anybody has a programmatic way to do it, please feel free to respond with that method as well. Thanks GEOSoft!!

I have a program which generates a table in a word document based on my input to the program. I have 2 documents, a header.doc and a footer.doc. I need to do the following.

1) Open header.doc

2) Select All contents

3) Copy Selection

4) Paste in new document

5) Generate Table

6) Open footer.doc

7) Select All contents

8) Copy Selection

9) Paste in new document

I currently have steps 1,5,6 working. I know how to copy and paste, so 3,4,8,9 should not be a problem. 2 and 7 are where my issue lies. Please help!!

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