run time error on commandbars

M

mango

i have this statement reads

when password correct -
CommandBars("test toolbar").visible = true

when workbook open/close
CommandBars("test toolbar").visible = false

the above can work when i test on a new workbook but have this message
run time error 91
object variable or with block variable not set
when put in my application workbook.

why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top