top of page
Blog posts
Search
Getting locale information using the GetLocaleInfoEx Windows API Function
This post demonstrates how to use the GetLocaleInfoEx Windows API Function to get locale-related information.
Sep 2, 20253 min read
Â
Â


Flashing the taskbar icon and window using the Windows API
This post demonstrates how to use the FlashWindow or FlashWindowEx Windows API Functions to flash the taskbar icon and window for an application.
Aug 28, 20253 min read
Â
Â


Get and set the active printer ... and list all available printers
This post demonstrates how to use the GetDefaultPrinter, SetDefaultPrinter and EnumPrinters Windows API Functions to, respectively, get the name of the active printer, set the active printer and list all available printers.
Aug 22, 20254 min read
Â
Â


Testing the state of a key using the GetKeyState Windows API Function
This post demonstrates how to use the GetKeyState Windows API Function to test the state of specific keys ... in this case, the Shift, Ctrl, Alt, Caps Lock and Num Lock keys.
Aug 20, 20252 min read
Â
Â


Using 'F1' to view Windows API web pages
VBE_Extras extends the built-in "F1" functionality to open the Microsoft documentation web page for Windows API Functions (i.e. that you have declared using the 'Declare' keyword), Types, Enums and Consts.
Aug 19, 20252 min read
Â
Â


Automatically add Windows API declaration(s)
VBE_Extras will help you to identify and add (to your VBA code) Windows API declarations.
Aug 18, 20256 min read
Â
Â


Dark mode in the VBE
Let VBE_Extras take away the strain of choosing different colours (as well as the eye-strain) by using the Themes functionality to allow you to switch into "Dark Mode" using the built-in Dark Theme.
Jun 20, 20251 min read
Â
Â


MsgBox with custom button texts
This post provides code that you can use to customise the text in message box buttons. You can show the message box with 1, 2 or 3 buttons and get the text of the clicked button back.
Jun 19, 20253 min read
Â
Â


MsgBox with a timeout
Showing a MsgBox dialog to a user is great to inform them of stuff or get input. But it can be a problem if the user isn't paying attention to your application and doesn't notice the dialog. But a dialog with a timeout ... using the Windows API function "MessageBoxTimeout" ... won't wait indefinitely ... it'll wait as long as you want it to wait.
Jun 11, 20254 min read
Â
Â


Get the application window handle in any app (well ... in Excel, Word, Access, PowerPoint or Outlook)
I wanted to have a simple piece of code that I could drop into any host application in which I am developing VBA code that would get me the application window handle ...
Jun 10, 20252 min read
Â
Â


Articles: Blog2
bottom of page