Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default How do I list Ampersand in a caption or quotes? -- & in " "

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default How do I list Ampersand in a caption or quotes? -- & in " "

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
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
MSN stock quotes - Error message "problem displaying attributes" jd Excel Discussion (Misc queries) 0 November 13th 07 10:34 PM
how can I use the ampersand in a custom header as the word "and"? pickle77 Excel Discussion (Misc queries) 4 November 9th 07 03:52 PM
How do I display the "ampersand" in the header as text Mark10101010 Setting up and Configuration of Excel 1 May 15th 06 04:01 PM


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