top of page
Blog posts
Search
Hide a UserForm's title bar
The following code will hide the whole title bar of the UserForm window. Why would you want to do this? The only time I do is when...
Feb 25, 20221 min read
Â
Â


Working with a UserForm's close button (the 'X' button)
The close (or 'X') button appears at the right in the title bar of every UserForm. You can control the behaviour when it is clicked, or...
Feb 25, 20222 min read
Â
Â


Add an icon to a UserForm's title bar
Adding an icon to a UserForm's title bar can help to give a professional look to your UserForm. The source icon must be a .ico file. If...
Feb 24, 20222 min read
Â
Â


Get or set the Ribbon visibility
The examples here all work with Excel, Word and PowerPoint, they do not work with Outlook. Set the Ribbon visibility These methods allow...
Feb 22, 20222 min read
Â
Â


Join two parts of a file or folder path
NOTE: this post and the code it contains is still valid, however, it has been superseded by the 'Working with files and folders in VBA'...
Feb 22, 20221 min read
Â
Â


Does a file or folder exist?
NOTE: this post and the code it contains is still valid, however, it has been superseded by the 'Working with files and folders in VBA'...
Feb 22, 20221 min read
Â
Â


Pause processing
Code often needs to pause and wait for something else to happen. There are a number of options to do this. In Excel, you can use...
Feb 22, 20222 min read
Â
Â


Get all files in a folder
NOTE: this post and the code it contains is still valid, however, it has been superseded by the 'Working with files and folders in VBA'...
Feb 22, 20221 min read
Â
Â


What is VBA
What is VBA VBA stands for Visual Basic for Applications. VBA is Microsoft’s programming language for a number of the Office suite of...
Feb 22, 20225 min read
Â
Â


Get the local date and time including milliseconds
This code uses the GetLocalTime Windows API to get a more accurate time than VBA will supply, accurate to around 15 milliseconds. You can...
Feb 22, 20221 min read
Â
Â


Articles: Blog2
bottom of page