BANGALORE, INDIA: A macro is a rule or a pattern that specifies how a certain input sequence (sequence of characters) should be mapped to an output sequence (sequence of characters) according to a defined procedure.These are a series of commands that are recorded so they can be played back, or executed later.
All of us have used Microsoft's Word at one time or the other, but few of us know or realize that there is a provision for writing our own code and implement them in Word. Recently, while doing a research project, I was stuck at a point where I had a huge amount of written data required to be analyzed, more specifically I had to find out individual occurrence of some words in the whole document.
This was manually impossible and not practical since the Word document was nearly 13,000 pages long and had more than 4 million words. I was left with the choice of installing Linux and then use their fabulous feature that would have let me do it easily. However, this was not possible as I hardly had any disk space left for a new partition to install Linux on. That is when I decided to use this wonderful feature in Microsoft Word. I will be using MS Word 2007 to explain the process.
Initializing the Developer Tab
Click on the Microsoft Office icon on the top left hand corner of the word document screen. Click on 'Word Options'. In the 'Popular' Tab, choose 'Show Developer Tab in The Ribbon', if not already selected. This will show a new tab in the toolbar called 'Developer.'
Setting up the macroThe following steps show how to record and save a macro:
Set up excluded words not_find="[the][a][of][is][to][for][by][be][and][are][i][was][were]"
Get most out of your technology infrastructure investments with Dell
About CIOL | Media Kit | Site Map | Contact Us | Help | Write to us | Jobs@CyberMedia | Privacy Policy
Copyright © CyberMedia India Online Ltd. All rights reserved. Usage of content from web site is subject to Terms and Conditions.