Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Custom Toolbar position

I have the follwoing code that creates a toolbar when the
workbook is open. What I want to do is to make it show up
at the top of the screen not right in the middle where it
does now. Help

Application.CommandBars.Add(Name:="COUNT").Visible =
True
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:=3 _
, Befo=1
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:= _
752, Befo=2
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Custom Toolbar position

Application.CommandBars.Add(Name:="COUNT").Top = 0
would put it at the top of the screen

--
Regards,
Tom Ogilvy

"Michelle" wrote in message
...
I have the follwoing code that creates a toolbar when the
workbook is open. What I want to do is to make it show up
at the top of the screen not right in the middle where it
does now. Help

Application.CommandBars.Add(Name:="COUNT").Visible =
True
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:=3 _
, Befo=1
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:= _
752, Befo=2



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Custom Toolbar position

That puts it at the top, but I would like it to be
positioned at the topleft where the starndard toolbar
would have been had I not hidden it.
You would see the name of the file then the toolbar set in
postiton like a normal tool bar. If I have you lost I am
sorry

-----Original Message-----
Application.CommandBars.Add(Name:="COUNT").Top = 0
would put it at the top of the screen

--
Regards,
Tom Ogilvy

"Michelle" wrote in

message
...
I have the follwoing code that creates a toolbar when

the
workbook is open. What I want to do is to make it show

up
at the top of the screen not right in the middle where

it
does now. Help

Application.CommandBars.Add(Name:="COUNT").Visible =
True
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:=3 _
, Befo=1
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:= _
752, Befo=2



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Custom Toolbar position

thought it was a floating toolbar:

Sub BBBB()
On Error Resume Next
Application.CommandBars("COUNT").Delete
On Error GoTo 0
Application.CommandBars.Add(Name:="COUNT", _
Position:=msoBarTop, MenuBar:=True).Visible = True
Application.CommandBars("COUNT").Controls.Add _
Type:=msoControlButton, ID:=3, Befo=1
Application.CommandBars("COUNT").Controls.Add _
Type:=msoControlButton, ID:=752, Befo=2
End Sub

delete COUNT to get the worksheet menu bar back.

--
Regards,
Tom Ogilvy

wrote in message
...
That puts it at the top, but I would like it to be
positioned at the topleft where the starndard toolbar
would have been had I not hidden it.
You would see the name of the file then the toolbar set in
postiton like a normal tool bar. If I have you lost I am
sorry

-----Original Message-----
Application.CommandBars.Add(Name:="COUNT").Top = 0
would put it at the top of the screen

--
Regards,
Tom Ogilvy

"Michelle" wrote in

message
...
I have the follwoing code that creates a toolbar when

the
workbook is open. What I want to do is to make it show

up
at the top of the screen not right in the middle where

it
does now. Help

Application.CommandBars.Add(Name:="COUNT").Visible =
True
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:=3 _
, Befo=1
Application.CommandBars("COUNT").Controls.Add
Type:=msoControlButton, ID:= _
752, Befo=2



.



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
Custom Comment Position John3005 Excel Discussion (Misc queries) 3 January 26th 08 01:49 PM
Set custom ToolBar Position on Excel Loads default to zero value John Stratoudakis Excel Programming 1 August 9th 04 05:41 PM
custom toolbar buttons are saved where? Excel loads twice bymistake and all my custom toolbar buttons get gone!!! Kevin Waite Excel Programming 2 March 3rd 04 03:31 PM
toolbar position M. Excel Programming 1 September 19th 03 11:36 AM
saving toolbar buttons on custom toolbar Paul James Excel Programming 12 August 6th 03 08:28 AM


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