Hello!
I'm trying to create some vba code that will always make the ribbon and formula bar hidden from the user for this workbook only.
I have put the code in the workbook activate/deactivate events in the ThisWorkbook module but 1. I'm getting a runtime error 'Object variable or With block variable not set' for my ribbon line (even though this line works fine as it's own sub in a different worksheet module). 2. Even if I take this line out to focus on the formula bar line (which does work), nothing happens when I switch between workbooks. The formula bar remains hidden when I open another workbook etc.)
Here is the code I am using;
Any ideas?
Thanks!
Bookmarks