All of the Code Examples here are to demonstrate the use of particular RunCommand Constants. They may not be the best or the most efficient method of achieving the end result. In fact for some you should be able to find better ways. Some example have a symbol. This indicates that the code uses SendKeys which is not a robust method.
I have tried to test all the Code Examples and include error trapping where approrpiate. If you find any mistakes or can suggest any improvements to the examples please let me know. I would also be pleased to include any examples that you may have that use RunCommand constants that I have not already got covered.
Some of the code on this site appears by permission of the person who first wrote it. Please feel free to use the code but observe the copyright notice in the examples. Other examples are from Microsoft sources. The exact source of each piece of code is displayed above the code concerned. The RunCommand constant is highlighted within the code.