For anyone else wondering, here is the Tools > References library you need to add to use WinHTTP in VBA.
Microsoft WinHTTP Services, version 5.1 C:\Windows\system32\winhttpcom.dll