Impact of VBScript Deprecation
As an FYI for those of you curious, I’ve been trying to ascertain the true impact of the VBScript deprecation. Sadly, the official announcement provides 0 details whatsoever as to the impacted...
View ArticleHow To Count The Number Of Characters In A String
Ever needed to get the character count of a string? Easy enough, right! Simply use the Len() function. lLength = Len("My string to get the character count of.") But what happens if you want the...
View ArticleCounting the Number of Words in a String
Have you ever needed to count the number of words in a string? Let’s explore a few ways we can achieve this. Using Plain Vanilla VBA (sort of, but not quite) Below are 2 functions that can be employed...
View ArticleDetermine If A Filename Is Valid
It is quite common in applications to allow the user to specify a path and/or filename for saving files. As such, a best practice would be to validate the user’s input prior to blindly using it and...
View ArticleHow To Sanitize A Filename
As a part 2 to my post on Validating a Filename to ensure it conforms to Microsoft Windows naming convention, refer to: Determine If A Filename Is ValidIt is quite common in applications to allow the...
View ArticleHow To Determine If A Font Exists
Going through some old code of mine, and thought I’d share a simple function that can be used to determine if a font is installed, or not. I’ve previously published a function which employed Word...
View ArticleSmart Indenter Is Alive
One of my preferred add-ins for VBA development for many years was a small little indenting utility called Smart Indenter. It did one thing, automatically indent code to make it much more legible, but...
View ArticleHow to Expand All the Microsoft Roadmap Items
If you’ve ever seen any of my posts about the Microsoft Roadmaps, I typically provided a screenshot showing all the items expanded. For instance, in my post: Microsoft Access Roadmap UpdateDid you...
View ArticleUsing VBA To Lock The PC
Ever needed or wanted to be able to lock the PC? Perhaps after running your code? Well it is surprisingly simple to do! Luckily for us, there is a simple API we can implement to do all the heavy...
View ArticleUsing VBA to Shutdown, Reboot, Hibernate, Logoff of a PC
Ever needed to make a PC Shutdown, Reboot, Hibernate, … after running some code? As with most things, there are a number of possible approaches, but today I thought I’d demonstrate a very simple...
View Article
More Pages to Explore .....