Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to superscript a character is a string. I want this string to
be entered into a textbox. For example, This is what I have: tbxViewingAngle = "140 Degrees Horizontal" This is what I want: tbxViewingAngle = "140o Horizontal" (Superscript the "o" in the string) -- Cheers, Ryan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Give this a try:
Sub dural() Dim s As String s = "100" & Chr(176) & " longitude" MsgBox (s) End Sub -- Gary''s Student - gsnu200819 "RyanH" wrote: Is there a way to superscript a character is a string. I want this string to be entered into a textbox. For example, This is what I have: tbxViewingAngle = "140 Degrees Horizontal" This is what I want: tbxViewingAngle = "140o Horizontal" (Superscript the "o" in the string) -- Cheers, Ryan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Perfect!
-- Cheers, Ryan "Gary''s Student" wrote: Give this a try: Sub dural() Dim s As String s = "100" & Chr(176) & " longitude" MsgBox (s) End Sub -- Gary''s Student - gsnu200819 "RyanH" wrote: Is there a way to superscript a character is a string. I want this string to be entered into a textbox. For example, This is what I have: tbxViewingAngle = "140 Degrees Horizontal" This is what I want: tbxViewingAngle = "140o Horizontal" (Superscript the "o" in the string) -- Cheers, Ryan |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ryan,
You cannot superscript a character in a textbox, but you can use the degree character: tbxViewingAngle.Text = "140" & Chr(176) & " Horizontal" HTH, Bernie MS Excel MVP "RyanH" wrote in message ... Is there a way to superscript a character is a string. I want this string to be entered into a textbox. For example, This is what I have: tbxViewingAngle = "140 Degrees Horizontal" This is what I want: tbxViewingAngle = "140o Horizontal" (Superscript the "o" in the string) -- Cheers, Ryan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stepping through each character in a character string | Excel Programming | |||
Excel-Match 1st text character in a string to a known character? | Excel Worksheet Functions | |||
superscript in part of a string when using concatenate | Excel Discussion (Misc queries) | |||
Function to return Character Position of Xth character within a string | Excel Programming | |||
Finding a particular character in a string using VBA | Excel Programming |