- Joined
- Nov 5, 2007
- Messages
- 2
- Reaction score
- 0
I'm trying to create a popup commandbar. I've created standard commandbars before. This is what I've tried so far...
Dim TBar As CommandBarPopup
Set TBar = Application.CommandBars.Add("Test 2", msoBarPopup, True, True)
When running the sub, I always get an error msg highlighting the "Set" line.
What am I doing wrong?
Dim TBar As CommandBarPopup
Set TBar = Application.CommandBars.Add("Test 2", msoBarPopup, True, True)
When running the sub, I always get an error msg highlighting the "Set" line.
What am I doing wrong?