PC Review


Reply
Thread Tools Rate Thread

Commandbar properties

 
 
=?Utf-8?B?QTFwcm8=?=
Guest
Posts: n/a
 
      9th Nov 2006
Hello,

I've got this part of a macro

Set cbar = Application.CommandBars.Add(Name:="SendOut", temporary:=True)
cbar.Visible = True
Set cbarcontrol = cbar.Controls.Add(Type:=msoButtonIcon)
With cbarcontrol
.FaceId = 136
.Caption = "SendOut"
.OnAction = "RunWordMacro_Automation"

It creates a toolbar with a button

The only thing I need to do is modify it so it shows not only the icon but
the also a name like SendOut in this case

any ideas ?

TIA
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QTFwcm8=?=
Guest
Posts: n/a
 
      9th Nov 2006
Nevermind

..Style = msoButtonIconAndCaption


"A1pro" wrote:

> Hello,
>
> I've got this part of a macro
>
> Set cbar = Application.CommandBars.Add(Name:="SendOut", temporary:=True)
> cbar.Visible = True
> Set cbarcontrol = cbar.Controls.Add(Type:=msoButtonIcon)
> With cbarcontrol
> .FaceId = 136
> .Caption = "SendOut"
> .OnAction = "RunWordMacro_Automation"
>
> It creates a toolbar with a button
>
> The only thing I need to do is modify it so it shows not only the icon but
> the also a name like SendOut in this case
>
> any ideas ?
>
> TIA

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant dim as commandbar =?Utf-8?B?U2VyZW4=?= Microsoft Excel Programming 1 21st Dec 2005 09:18 PM
Commandbar Sokrat Saydahmat Microsoft Outlook Program Addins 5 14th Jul 2005 10:58 PM
CommandBar Frank Dulk Microsoft Access Forms 5 11th Mar 2005 08:06 AM
CommandBar Microsoft Access Form Coding 2 17th Dec 2003 03:39 AM
CommandBar Lynn Microsoft Excel Worksheet Functions 0 15th Sep 2003 01:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.