| >GRSoftware >VBA Tutor >Newsletter Issues >Newsletter #3 >Newsletter #5 |
VBA TUTOR NEWSLETTER #4~ 14-2-2000 Help for the beginner to intermediate VBA programmer |
In this issue we will be looking at some cool coding tips to build on the 'OBJECT' skills we looked at in the last issue. |
| ~ VBA in GENERAL ~ |
Having created some cool code, what do you do with it. In Office 2000 Developer Edition, there is an inbuilt utility to build your own code library. ( More info here) However, it is possible to build your own code library by creating a code template, similar to the macro templates that come with OFFICE '97 (eg.'Macros8.dot'). Just create a code template called 'VBA_Library.dot'. To copy code into your code library, use the Project Explorer in the VB editor to drag and drop code modules from other projects. To give modules more appropriate names, use the View|Properties Window Menu Item to rename modules. |
| ~ VBA in WORD ~ |
If a macro takes a long time to run because if is continually updating the screen, you can turn off screen updating using the following code at the beginning and end or the macro code. |
~ COOL WORD RESOURCE ~ |
| ~ VBA in EXCEL ~ |
In EXCEL it is important to specify the data type to avoid errors, so make sure you use the 'Application.InputBox()' method rather than the commonly used 'Inputbox' method. Using this method you can specify the type of value that can be entered by the user, rather than programming a loop to get the correct value. For example ...
|
~ COOL EXCEL RESOURCE ~ |
| ~ VBA in ACCESS ~ |
Using VBA in ACCESS is not one of our strengths, although we are working on it. So, in this section, we will just point you towards some excellent resources. |
~ COOL ACCESS RESOURCE ~ |
| © 2000 Gary Radley |