Fantastic Diane - that is really useful.
I don't necessarily need the ribbon to show, just the status bar, which I can confirm that this does.
The code you have provided is excellent. It toggles between online and offline.
I'm wondering is there is a way, rather than toggling, to switch...