A simple way I check for internet access in VBA
Every now and then, I need to know whether a machine actually has internet access before doing anything else. Usually that’s before calling an API, syncing data, or pulling something external that would otherwise just… hang. There are a few ways to approach this, but I tend to keep it very simple.