PC Review


Reply
Thread Tools Rate Thread

How do I list Ampersand in a caption or quotes? -- & in " "

 
 
Benjamin
Guest
Posts: n/a
 
      19th Aug 2009
My code creates an excel bar. I want the ampersand character in the
tooltip text and/or caption depending on the button.
But Excel only shows extra spaces or duplicates a word and acts funny.
I know special characters usually require something or they don't display as
text.
Help?

'<<--Button 5 User Mode
' Create a button with an image on the bar and set some
' properties.
Set ComBarContrl = ComBar.Controls.Add(Type:=msoControlButton)
With ComBarContrl
'the facId line will let you choose an icon
' If you choose to use the faceId then the caption is not displayed
.FaceId = 3059
.Style = msoButtonIconAndCaption
.Caption = "User Mode"
.TooltipText = "Lock & Hide Sheets for User Mode"
'the onaction line tells the button to run a certain marcro
.OnAction = "btnUserMode.HideAllButOneSheet"
End With
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      19th Aug 2009
Try
..TooltipText = "Lock && Hide Sheets for User Mode"

If this post helps click Yes
---------------
Jacob Skaria


"Benjamin" wrote:

> My code creates an excel bar. I want the ampersand character in the
> tooltip text and/or caption depending on the button.
> But Excel only shows extra spaces or duplicates a word and acts funny.
> I know special characters usually require something or they don't display as
> text.
> Help?
>
> '<<--Button 5 User Mode
> ' Create a button with an image on the bar and set some
> ' properties.
> Set ComBarContrl = ComBar.Controls.Add(Type:=msoControlButton)
> With ComBarContrl
> 'the facId line will let you choose an icon
> ' If you choose to use the faceId then the caption is not displayed
> .FaceId = 3059
> .Style = msoButtonIconAndCaption
> .Caption = "User Mode"
> .TooltipText = "Lock & Hide Sheets for User Mode"
> 'the onaction line tells the button to run a certain marcro
> .OnAction = "btnUserMode.HideAllButOneSheet"
> End With

 
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
can i able to change the voting caption "VOTE" to custom caption? Balan Microsoft Outlook 1 3rd Dec 2008 09:47 PM
"Index of out array bounds" error with ampersand. writebrent@gmail.com Microsoft C# .NET 3 17th Jun 2006 11:00 PM
Create macro how to change smart quotes "" with smart quotes ,,"? sarunas.leonas@gmail.com Microsoft Word Document Management 8 4th Mar 2006 07:08 AM
Hide "Record" "Closed Caption" "Parental Control" indicators while in full screen Jordan ATI Video Cards 0 18th Feb 2005 05:21 PM
custom header..why doesn't the "AMPERSAND" show up when printing? M. Jarviss Microsoft Excel Misc 1 29th Apr 2004 07:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:33 AM.