Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Force CommandBar Position

I maintain an add-in on my employer's shared drive. Currently, when users
who have installed my add-in launch Excel, the add-in deletes its toolbar and
rebuilds it to ensure they are alway using the most recent version.

However, the code is not remembering the previous location of the toolbar.
It is simply forcing it to msoBarTop. I tried to read, store, and set the
..Top and .Left properties of the toolbar; however, my toolbar cannot dock
itself onto the same bar as other toolbars using this method. Is there a way
around this?

Thanks,
Matthew Pfluger
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Force CommandBar Position


RowIndex is what you want and is used something like this...
MyBar.RowIndex = Application.CommandBars("Formatting").RowIndex
MyBar.Left = Application.CommandBars("Formatting").Width
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Matthew Pfluger"

wrote in message
I maintain an add-in on my employer's shared drive. Currently, when users
who have installed my add-in launch Excel, the add-in deletes its toolbar and
rebuilds it to ensure they are alway using the most recent version.
However, the code is not remembering the previous location of the toolbar.
It is simply forcing it to msoBarTop. I tried to read, store, and set the
..Top and .Left properties of the toolbar; however, my toolbar cannot dock
itself onto the same bar as other toolbars using this method. Is there a way
around this?
Thanks,
Matthew Pfluger
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Force CommandBar Position

Perfect. Thanks for your help.
Matthew Pfluger

"Jim Cone" wrote:


RowIndex is what you want and is used something like this...
MyBar.RowIndex = Application.CommandBars("Formatting").RowIndex
MyBar.Left = Application.CommandBars("Formatting").Width
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Matthew Pfluger"

wrote in message
I maintain an add-in on my employer's shared drive. Currently, when users
who have installed my add-in launch Excel, the add-in deletes its toolbar and
rebuilds it to ensure they are alway using the most recent version.
However, the code is not remembering the previous location of the toolbar.
It is simply forcing it to msoBarTop. I tried to read, store, and set the
..Top and .Left properties of the toolbar; however, my toolbar cannot dock
itself onto the same bar as other toolbars using this method. Is there a way
around this?
Thanks,
Matthew Pfluger

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
cant dim as commandbar Seren Excel Programming 1 December 21st 05 09:18 PM
Position of CellCursor on Screen (absolute position) [email protected] Excel Programming 1 November 23rd 05 02:23 AM
Get floating CommandBar position Patti[_2_] Excel Programming 4 July 18th 05 09:08 PM
Adjust position of a commandbar quartz[_2_] Excel Programming 1 March 11th 05 06:53 AM
How to force repaint of popup commandbar? RB Smissaert Excel Programming 0 December 17th 03 01:59 PM


All times are GMT +1. The time now is 01:28 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"