Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2007

Tip: Looking for answers? Try searching our database.

Macro command to turn on File Menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zainuddin Zakaria - 01 Jan 2007 14:03 GMT
Hi all,

I have hidden the MENU BAR using a macro command on purpose.

For the user to 'save/save as' his work, I plan to have a button on that
worksheet. The user can open the FILE menu, using that button when pressed.
Can someone suggest a macro command for that button to work the way I plan
it to be if it is possible.

Thank you so much.

Zainuddin Z
Dave Peterson - 01 Jan 2007 14:42 GMT
One way is to just show the File|Save as dialog.

Option Explicit
Sub testme()
   Application.Dialogs(xlDialogSaveAs).Show
End Sub

> Hi all,
>
[quoted text clipped - 8 lines]
>
> Zainuddin Z

Signature

Dave Peterson

Zainuddin Zakaria - 01 Jan 2007 17:46 GMT
Dear Dave Peterson,

Thank you so much.

It works perfectly the way I want it.

Happy New Year, Dave.

Warmest regards,

Zainuddin Z

> Hi all,
>
[quoted text clipped - 8 lines]
>
> Zainuddin Z
Zainuddin Zakaria - 01 Jan 2007 18:16 GMT
Hi again,

This is related to the question below.
Dave Peterson has kindly responded to that and it works.

My next question is how to exit the workbook (file) since there is no MENU
bar again.
Anything similar Macro command to that ?

Thank you.

Zainuddin Z

> One way is to just show the File|Save as dialog.

> Option Explicit

> Sub testme()

> Application.Dialogs(xlDialogSaveAs).Show

> End Sub

> Hi all,
>
[quoted text clipped - 8 lines]
>
> Zainuddin Z
Zainuddin Zakaria - 01 Jan 2007 18:18 GMT
Thanks Dave...

> Hi again,
>
[quoted text clipped - 31 lines]
>>
>> Zainuddin Z
Gord Dibben - 01 Jan 2007 18:43 GMT
Either of these should do

ActiveWorkbook.Close

ActiveWindow.Close

Or manaully hit CTRL + w

Gord Dibben  MS Excel MVP

>Hi again,
>
[quoted text clipped - 31 lines]
>>
>> Zainuddin Z
Dave Peterson - 01 Jan 2007 18:45 GMT
Give them another button to close the workbook????

Option Explicit
Sub testme02()
   ThisWorkbook.Close
End Sub

But remember to restore all the menus that you disabled.  You'll want to be a
nice developer.

> Hi again,
>
[quoted text clipped - 31 lines]
> >
> > Zainuddin Z

Signature

Dave Peterson


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.