top of page
The VBA Help blog
Search
Make an HTTP(S) GET request and read the response using the Windows API
When getting information from the web (fetching a page, calling a REST endpoint, or reading a small text or JSON feed), the usual answer is MSXML2.XMLHTTP or WinHttp.WinHttpRequest, which means you are relying on the presence of the relevant library(s) on your (or an end-users) device. However, Windows already has an HTTP stack built in, WinINet, and a handful of its Functions will do a GET for you with no library required.
1 day ago4 min read
Â
Â


Get the current time zone, UTC offset and daylight saving state
VBA can tell you the current date and time, but not which time zone you're in, how far that is from UTC, or whether daylight saving is in effect right now. Windows knows all three, and a single call of the GetDynamicTimeZoneInformation Windows API function gets them for you.
Jun 223 min read
Â
Â


Over 2,500 Windows API Functions now available to be added directly to your VBA Project
VBE_Extras is now able to add 2,538 Windows API Functions (along with 601 Types, 99 Enums and 11,978 Consts) to your VBA code. In addition, VBE_Extras can add (or direct you to) example usages for 757 Windows API Functions.
Jun 192 min read
Â
Â


Callbacks in VBA using AddressOf
Most of the procedures you write are called by you, or by VBA on your behalf. A callback turns that around: you hand another piece of software the address of one of your own procedures and let it do the calling. How to do this in VBA is with the AddressOf operator.
Jun 93 min read
Â
Â


Getting extended file / folder attributes
Getting extended file / folder attributes using the GetFileAttributesEx Windows API Function
Apr 133 min read
Â
Â


The ":Zone.Identifier:$DATA" alternate data stream (ADS)
The ":Zone.Identifier:$DATA" alternate data stream (ADS) ... unblocking files that have the "Mark of the web"
Mar 43 min read
Â
Â


Reading, writing and deleting alternate data streams (ADS)
How to read, write and delete the alternate data streams (ADS) for a file or folder using VBA code?
Mar 33 min read
Â
Â


Getting the alternate data streams (ADS) for a file or folder
How to get a list of the alternate data streams (ADS) for a file or folder using VBA code?
Mar 23 min read
Â
Â


Expand / un-expand environment variable strings
Expanding and unexpanding environment strings using the Windows API.
Feb 272 min read
Â
Â


Put text into the clipboard / get text from the clipboard
Working with the clipboard using the Windows API ... put text into the clipboard, get text from the clipboard, empty the clipboard, check whether the clipboard contents have changed.
Feb 232 min read
Â
Â


Articles: Blog2
bottom of page