I want to hide the Excel button in the taskbar and display a separate button for my userform so that it feels like an application on its own. I know this has been covered a
Simply put the following code in your main UserForm_Initialize sub and it will minimize the Excel application window while leaving your form open on the desktop.
Private Sub minimizeWindow()
With Application
.WindowState = xlMinimized
End With
End sub
To answer my own question: the problem was not in the code I posted above, but in the way the userform was loaded. It should be loaded as modeless.