Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default hide the menubars and toolbars

Hi all,

Could any body tell me hw to hide the menubars and toolbars once i run my
excel sheet ??
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default hide the menubars and toolbars

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once i run my
excel sheet ??



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default hide the menubars and toolbars

Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once i run my
excel sheet ??




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default hide the menubars and toolbars

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once i run
my
excel sheet ??






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default hide the menubars and toolbars

Hi "Bob Phillips",
Really i appreciate your help,but i have two problems:
1-The macro "autoexec" that hides the menus when i open my excel sheet
spmetimes works and sometimes no !!!
2-When i open any other excel sheet the menus are always hidden, i need to
hide these menus only from a certain sheet called "my team KPIs"

Regards

"Bob Phillips" wrote:

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once i run
my
excel sheet ??








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default hide the menubars and toolbars

I have no idea what autoexec is or does so you will need to give more detail
here.

If you want those menus hidden only for that s/s, you need to put the hide
in the workbook activate procedure, and show them in the workbook deactivate
event procedure for the workbook in question.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Hi "Bob Phillips",
Really i appreciate your help,but i have two problems:
1-The macro "autoexec" that hides the menus when i open my excel sheet
spmetimes works and sometimes no !!!
2-When i open any other excel sheet the menus are always hidden, i need to
hide these menus only from a certain sheet called "my team KPIs"

Regards

"Bob Phillips" wrote:

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once i
run
my
excel sheet ??








  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default hide the menubars and toolbars

"autoexec" is the macro that works once the sheet is open,i guess,please
write the exact codes that i shouyld use as i'm not experienced enoujgh with
Excel..
Regards

"Bob Phillips" wrote:

I have no idea what autoexec is or does so you will need to give more detail
here.

If you want those menus hidden only for that s/s, you need to put the hide
in the workbook activate procedure, and show them in the workbook deactivate
event procedure for the workbook in question.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Hi "Bob Phillips",
Really i appreciate your help,but i have two problems:
1-The macro "autoexec" that hides the menus when i open my excel sheet
spmetimes works and sometimes no !!!
2-When i open any other excel sheet the menus are always hidden, i need to
hide these menus only from a certain sheet called "my team KPIs"

Regards

"Bob Phillips" wrote:

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once i
run
my
excel sheet ??









  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default hide the menubars and toolbars

Get rid of what you have, and use this in that specific workbook

Option Explicit

Private mFormulaBar

Private Sub Workbook_Deactivate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Activate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
"autoexec" is the macro that works once the sheet is open,i guess,please
write the exact codes that i shouyld use as i'm not experienced enoujgh
with
Excel..
Regards

"Bob Phillips" wrote:

I have no idea what autoexec is or does so you will need to give more
detail
here.

If you want those menus hidden only for that s/s, you need to put the
hide
in the workbook activate procedure, and show them in the workbook
deactivate
event procedure for the workbook in question.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi "Bob Phillips",
Really i appreciate your help,but i have two problems:
1-The macro "autoexec" that hides the menus when i open my excel sheet
spmetimes works and sometimes no !!!
2-When i open any other excel sheet the menus are always hidden, i need
to
hide these menus only from a certain sheet called "my team KPIs"

Regards

"Bob Phillips" wrote:

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in
my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once
i
run
my
excel sheet ??











  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default hide the menubars and toolbars

Execellent job !!
Could you tell me please the code to use to have my document always open on
the tab "My team members",as i want users to go to the other tabs always
through "tab

tThanx

"Bob Phillips" wrote:

Get rid of what you have, and use this in that specific workbook

Option Explicit

Private mFormulaBar

Private Sub Workbook_Deactivate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Activate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
"autoexec" is the macro that works once the sheet is open,i guess,please
write the exact codes that i shouyld use as i'm not experienced enoujgh
with
Excel..
Regards

"Bob Phillips" wrote:

I have no idea what autoexec is or does so you will need to give more
detail
here.

If you want those menus hidden only for that s/s, you need to put the
hide
in the workbook activate procedure, and show them in the workbook
deactivate
event procedure for the workbook in question.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi "Bob Phillips",
Really i appreciate your help,but i have two problems:
1-The macro "autoexec" that hides the menus when i open my excel sheet
spmetimes works and sometimes no !!!
2-When i open any other excel sheet the menus are always hidden, i need
to
hide these menus only from a certain sheet called "my team KPIs"

Regards

"Bob Phillips" wrote:

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in
my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once
i
run
my
excel sheet ??












  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default hide the menubars and toolbars


Private Sub Workbook_Open()
Worksheets("My team members").Activate
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Execellent job !!
Could you tell me please the code to use to have my document always open
on
the tab "My team members",as i want users to go to the other tabs always
through "tab

tThanx

"Bob Phillips" wrote:

Get rid of what you have, and use this in that specific workbook

Option Explicit

Private mFormulaBar

Private Sub Workbook_Deactivate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Activate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
"autoexec" is the macro that works once the sheet is open,i
guess,please
write the exact codes that i shouyld use as i'm not experienced enoujgh
with
Excel..
Regards

"Bob Phillips" wrote:

I have no idea what autoexec is or does so you will need to give more
detail
here.

If you want those menus hidden only for that s/s, you need to put the
hide
in the workbook activate procedure, and show them in the workbook
deactivate
event procedure for the workbook in question.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi "Bob Phillips",
Really i appreciate your help,but i have two problems:
1-The macro "autoexec" that hides the menus when i open my excel
sheet
spmetimes works and sometimes no !!!
2-When i open any other excel sheet the menus are always hidden, i
need
to
hide these menus only from a certain sheet called "my team KPIs"

Regards

"Bob Phillips" wrote:

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in
my
addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail
in
my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars
once
i
run
my
excel sheet ??
















  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default hide the menubars and toolbars

Hi "Bob Phillips",
Thank you very much for your help,I have carried out all the below
steps accurately and the sheet is excellent,but i still have two problems:
1-On my home computer when i open any new sheet now,the menu bars and tool
bars are always hidden..,i cannot retrieve them any more unless i open this
sheet and run the macro that shows them again,is there any other solution to
make the command thaty hides the toolbars applicable only on one sheet?
2-On my work computer i can open any other excel sheet without facing the
above mentiond problem but when i run the macro that displays the menu bars
and tool bars, i get an error and excel takes me to the VB error,is there any
solution ?
Regards,waiting for your always professional answer.

"Bob Phillips" wrote:


Private Sub Workbook_Open()
Worksheets("My team members").Activate
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Execellent job !!
Could you tell me please the code to use to have my document always open
on
the tab "My team members",as i want users to go to the other tabs always
through "tab

tThanx

"Bob Phillips" wrote:

Get rid of what you have, and use this in that specific workbook

Option Explicit

Private mFormulaBar

Private Sub Workbook_Deactivate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Activate()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
"autoexec" is the macro that works once the sheet is open,i
guess,please
write the exact codes that i shouyld use as i'm not experienced enoujgh
with
Excel..
Regards

"Bob Phillips" wrote:

I have no idea what autoexec is or does so you will need to give more
detail
here.

If you want those menus hidden only for that s/s, you need to put the
hide
in the workbook activate procedure, and show them in the workbook
deactivate
event procedure for the workbook in question.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Pietro" wrote in message
...
Hi "Bob Phillips",
Really i appreciate your help,but i have two problems:
1-The macro "autoexec" that hides the menus when i open my excel
sheet
spmetimes works and sometimes no !!!
2-When i open any other excel sheet the menus are always hidden, i
need
to
hide these menus only from a certain sheet called "my team KPIs"

Regards

"Bob Phillips" wrote:

Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in
my
addy)



"Pietro" wrote in message
...
Ok,now it's working fine,but how can i make it appear again
Thanx


"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail
in
my
addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars
once
i
run
my
excel sheet ??















  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 210
Default hide the menubars and toolbars

Hi Bob
This code is along the lines of what I need but is there a way of modifying
it so that the FILE/MENU/EDIT/etc menu bar is still shown and one other
toolbar (one that I will create).
Thanks,
Rob

"Bob Phillips" wrote:

I did, in your previous post.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pietro" wrote in message
...
Hi all,

Could any body tell me hw to hide the menubars and toolbars once i run my
excel sheet ??




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hide toolbars, menu bar, etc runandrun Excel Discussion (Misc queries) 0 September 22nd 05 10:16 PM
Toolbars dstiefe Excel Discussion (Misc queries) 2 August 3rd 05 08:52 PM
close (hide) toolbars Anthony Excel Discussion (Misc queries) 7 June 5th 05 03:19 PM
How do I hide and show all toolbars Quinam Excel Worksheet Functions 1 April 12th 05 04:11 PM
How do I hide a worksheet in Excel and use a password to un-hide . Dchung Excel Discussion (Misc queries) 3 December 2nd 04 06:24 AM


All times are GMT +1. The time now is 01:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"