Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default programmatically adding a break in a menu bar

Hey guys--does anyone know the code for adding a break into a menu bar?
I can do it with the Microsoft interface, but I don't know how to code
one in and now need to. THanks, Abe

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default programmatically adding a break in a menu bar

Look at BeginGroup in VBA's help.

wrote:

Hey guys--does anyone know the code for adding a break into a menu bar?
I can do it with the Microsoft interface, but I don't know how to code
one in and now need to. THanks, Abe


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default programmatically adding a break in a menu bar

When adding the control, set BeginGroup to True

With .Controls.Add(Type:=msoControlButton)
.BeginGroup = True
.caption = "....

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
oups.com...
Hey guys--does anyone know the code for adding a break into a menu bar?
I can do it with the Microsoft interface, but I don't know how to code
one in and now need to. THanks, Abe



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default programmatically adding a break in a menu bar

works great. Thanks!

Bob Phillips wrote:
When adding the control, set BeginGroup to True

With .Controls.Add(Type:=msoControlButton)
.BeginGroup = True
.caption = "....

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
oups.com...
Hey guys--does anyone know the code for adding a break into a menu bar?
I can do it with the Microsoft interface, but I don't know how to code
one in and now need to. THanks, Abe


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
Disabling VBE Break on All Errors Programmatically with DAO SetOpt Jsadleir Excel Programming 2 February 20th 06 02:35 AM
Adding a menu item right click menu when clicking on a single. Andoni[_28_] Excel Programming 0 September 2nd 04 10:23 PM
Adding to AutoComplete programmatically Jim McLeod Excel Programming 3 April 19th 04 05:29 PM
Adding comment programmatically Carl Rapson Excel Programming 3 February 26th 04 11:01 PM
How to Programmatically Insert a Page Break Every Nth Row in a Range KK[_3_] Excel Programming 0 November 21st 03 12:49 AM


All times are GMT +1. The time now is 07:43 PM.

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"