borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (SENDKEYS error)Next Topic (Type Mismatch Error) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Excel VBA Help Please
Poster Message
Midgelo
Level: Guest


icon Excel VBA Help Please

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
| Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon 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
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon 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
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
win_dir
Level: VB Guru

Registered: 04-08-2002
Posts: 390
icon Re: Excel VBA Help Please

IF there weren't users there wouldn't be commerce and money.

____________________________
We have a Mustek 5 M/Pix GSm@rt USB Digital Camera
for just £74.03 , offer only on until 30th February!

<AllDuck.com>      

Enquiries/Sales: 0845 430 9862
Fax: 0870 950 4532

14-05-2003 at 09:05 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Midgelo
Level: Guest

icon Re: Excel VBA Help Please

In the words of Homer Simpson - "Doh!"
:-)

Thank you so much folks.

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
| Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon 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.

16-05-2003 at 12:39 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Excel VBA Help Please
Previous Topic (SENDKEYS error)Next Topic (Type Mismatch Error) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder