Automation SoftwareAutomation Anywhere
  Home > Product > Solutions > T35  

T35 - Format all Word documents (*.doc) in a folder

Task Description

This task automates formatting all Word documents in a folder (Times New Roman, Justify, Sentence Case etc).

Test File T35.atmn

Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks

Solutions
1 Create a new task
  • Click on New -> Task Editor.
Task Editor
Screenshot 1

Variable Manager
Screenshot 2

Open Program Files
Screenshot 3

Insert Keystrokes
Screenshot 4

Microsoft word doc
Screenshot 5

Capture Font
Screenshot 6

Font Properties
Screenshot 7

Task Editor
Screenshot 8
2 Loop through all the files in a folder
  • Select Start Loop in Conditions/Loops category.
  • Select Files for folder option.
3 Select only document Files
  • Under Conditions / Loops category, double-click on If command.
  • Select the option Variable
  • Click on Edit button
  • From the first drop down box select the System variable name Extension
  • Select the Operator 'Equals'
  • In the File option specify the value 'doc'
4 Open a document
  • Under Program/Files/Windows category, double-click on Program/Files command
  • In Program/File path specify the value '$CurrentDirectory$\$FileName$.$Extension$'
Open "$CurrentDirectory$\$FileName$.$Extension$"
5 Apply formatting to the document
  • Insert keystrokes in the documents to select all the contents of the document.
6 Double click on Manage windows command
  • Select the Microsoft word window, put the wild card ‘*’ before and after ‘Microsoft Word’
  • Click on recording button and start recording of actions.
7 Click on ‘Format’ menu
  • Select the option ‘Click item by text’
  • In the text write the name of menu on which you want to click here, we write ‘Font...’
8 Capture ‘Font’ list box
  • Select the option ‘Select item by text’
  • In the text write the name of item which you want to select. Here we write ‘Times New Roman’
9 Capture ‘OK’ button of the font window.
  • Select the option ‘Click’
Similarly record all the actions required to format all word documents.

When you run this task, it loops through all the documents of a folder and formats them.
Buy Now Free Trial

Next Steps
Compare versions Compare versions
Watch a flash demo Watch a flash demo
Contact me Contact me
Ask the Expert Ask the Expert
Request live demo Request live demo

Call 1-888-484-3535

Our Customers
Automation Anywhere Customers
Customer list | Case Studies

We started using this product to copy data from legacy system to new system. Now we use it just to do about anything automated. Countless hours saved. Thank you guys.
- Jack Greenberg

Read Customer Testimonies >>
  Products     Download     Purchase     Services     Support     Customers     Company     Sitemap     Trademark FacebookTwitterAutomation Anywhere Blog © Automation Anywhere, Inc. 2012 Privacy Policy
Automation Anywhere Call: 1-888-484-3535 x1