Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Freeze Location of Hidden Toolbars?

In an Excel application I am developing (XL2002 on Win XP Pro), I hide
all of the toolbars displayed on the screen and leave only the
Worksheet Menu Bar. Ideally, I'd like to freeze the position of all
the toolbars before I hide them, then unfreeze them when they are
revealed again.

However, if the user moves the Worksheet Menu Bar while all the other
ones are hidden, they appear rearranged when all of them are revealed.
I looked at the CommandBar object, but couldn't find a property or
method that would solve this problem. I tried the following when
revealing the toolbars, but that didn't work as planned:

Application.CommandBars("Worksheet Menu Bar").Top = 0

Does anyone know how to fix this problem?

Thanks,

- Bill

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Freeze Location of Hidden Toolbars?

However, if the user moves the Worksheet Menu Bar while

You can prevent that:

CommandBars("worksheet menu bar").Protection = msoBarNoMove

You'd want to reset it to msoBarNoProtection on exiting.

--
Jim
"Bill P" wrote in message
oups.com...
| In an Excel application I am developing (XL2002 on Win XP Pro), I hide
| all of the toolbars displayed on the screen and leave only the
| Worksheet Menu Bar. Ideally, I'd like to freeze the position of all
| the toolbars before I hide them, then unfreeze them when they are
| revealed again.
|
| However, if the user moves the Worksheet Menu Bar while all the other
| ones are hidden, they appear rearranged when all of them are revealed.
| I looked at the CommandBar object, but couldn't find a property or
| method that would solve this problem. I tried the following when
| revealing the toolbars, but that didn't work as planned:
|
| Application.CommandBars("Worksheet Menu Bar").Top = 0
|
| Does anyone know how to fix this problem?
|
| Thanks,
|
| - Bill
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Freeze Location of Hidden Toolbars?

Thanks, Jim. It works correctly now.

- Bill

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
Excel 2003 freeze panes won't freeze top row only macbone2002 Excel Discussion (Misc queries) 3 April 22nd 23 02:07 AM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
freeze pane: freeze from two worksheets? Chris Excel Discussion (Misc queries) 4 May 27th 08 01:17 AM
How to fix the toolbars location? Eric Excel Discussion (Misc queries) 1 January 24th 07 09:41 AM
How do I freeze more than one location on my worksheet? Melody Excel Worksheet Functions 3 January 29th 06 07:41 AM


All times are GMT +1. The time now is 05:32 AM.

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

About Us

"It's about Microsoft Excel"