![]() |
Using VBA in Word
|
VBA in Word |
Step 1 | The first step is to create a basic Word document outline |
Step 2 |
The next stage after completing the document outline is to add bookmarks, the bookmarks will be used as a reference point to add selected details. To add a bookmark I first recommend making sure that bookmarks are set to be visible - |
Step 3 |
Now I have made sure I will be able to see bookmarks I can now add them. Adding a bookmarks are really easy I Microsoft Word. Bookmarks can be added by going to the insert menu and then selecting bookmarks, see below – |
Step 4 |
Now I have added the bookmarks to my document it is time to open up the VBA environment (Alt + F11). The VBA environment is shown below |
Step 5 |
This is my favourite part, creating forms are very simple and easy to achieve it is important to consider end user needs at this stage. The end user will need to be aware of all cmd, combo, and text functions. I find creating labels and text tips the solution to the end user being unaware of functions (more on this later). Adding a form will enable me to begin designing the user form for this task. To add a user form I select insert and then user form. |
Step 6 |
After all the objects have been added the user form looks like the below image – |
Step 7 |
The most important thing to remember when adding objects that the correct naming conventions are used. The below image shows an example of a correct naming convention –
|
See Full Document For This Click Here |