On my Excel sheet I have been able to hide the command bars, tabs etc. - all, EXCEPT the 'bar' holding the Name Box and Formula Box - I have worked out they dont form a 'command bar' but simply can't discover how to turn them off?
I would be immensely grateful if anyone could enlighten me please....
14-05-2003 at 02:55 PM
|
~Bean~ Level: VB Guru Registered: 07-04-2003 Posts: 488
Re: Excel VBA Help Please
to hide the Formula Bar...
Application.DisplayFormulaBar = False
____________________________
Eggheads unite! You have nothing to lose but your yolks.
14-05-2003 at 04:29 PM
|
~Bean~ Level: VB Guru Registered: 07-04-2003 Posts: 488
Re: Excel VBA Help Please
forget to mention...
quote:remember...it's always polite to return all the command bars, formula bar, status bar, popup menus, etc. to the users' original settings after your Excel sheet exits...
darn users........
[Edited by ~Bean~ on 14-05-2003 at 11:32 AM GMT]
____________________________
Eggheads unite! You have nothing to lose but your yolks.
14-05-2003 at 04:31 PM
|
win_dir Level: VB Guru Registered: 04-08-2002 Posts: 390
Re: Excel VBA Help Please
IF there weren't users there wouldn't be commerce and money.
I plan to attach a macro to my exit button to restore the settings - just hope they exit that way and not in some bizarre fashion!
KRs
Jim
16-05-2003 at 10:25 AM
|
~Bean~ Level: VB Guru Registered: 07-04-2003 Posts: 488
Re: Excel VBA Help Please
no problem...and hey...the best way to catch the user leaving your program is probably to put your clean up code in an Auto_Close sub (this will run when the (excel) file is closed)....like so...
Sub Auto_Close()
'Set Formula Bar to Original Setting
'Set Status Bar to Original Setting
'Set Menu Bars to Original Setting
'Set PopUp Bars to Original Setting
End Sub
____________________________
Eggheads unite! You have nothing to lose but your yolks.