run time error on commandbars
i have this statement reads
password correct -
CommandBars("test toolbar").visible = true
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
why?
|