| VBA - The Word Working Partner | |||||||||||||||||||||||
| Automate Your Letter Writing | |||||||||||||||||||||||
There are lots of applications that are possible now that you know how to do this. For example, if you use Word mainly to write letters and only occasionally for something else, you could write an AutoExec program to ask whether to load a default "personal letter" or the generic Word environment.
There's a lot to be improved in this program. For one thing, keeping the default letter document in the root directory isn't usually recommended. (I did it that way to keep the lines short.) Adding your unique personalizations is left as an excercise for the reader. There are also a lot of other techniques that would to improve it. For one thing, AutoExec in the startup folder is a holdover from the old WordBasic (a "true" macro language rather than the increasingly Object Oriented VBA). VBA still supports a number of the old WordBasic commands and this is one of them. Next page > The AboutVBA.DOC Code Sample > Page 1, 2, 3, 4, 5, 6 |
|||||||||||||||||||||||

