How to Clear Office Clipboard with VBA

Saw this on another post, and I have tested it with Word VBA. Just copy and paste into your code where ever you need to clear the Clipboard. Another thing I noticed is that when I .Quit a program, say Excel, it keeps asking me if I want to keep the data is the Clipboard. A work … Read more

MS-DOS Batch file pause with enter key

There’s a pause command that does just that, though it’s not specifically the enter key. If you really want to wait for only the enter key, you can use the set command to ask for user input with a dummy variable, something like: set /p DUMMY=Hit ENTER to continue…

How do you display code snippets in MS Word preserving format and syntax highlighting?

Here is the best way, for me, to add code inside word: Go to Insert tab, Text section, click Object button (it’s on the right) Choose OpenDocument Text which will open a new embedded word document Copy and paste your code from Visual Studio / Eclipse inside this embedded word page Save and close Advantages The result looks very nice. Here are the … Read more