dj44
02-22-2017, 05:06 PM
Hi folks,:)
good midweek.
I have always had this problem, but i always left it be, as i could cope with a few sysmbols, and it didnt seem so much of a problem.
Well today I've been hunting down some u symbols, and I tried to make them in to vba but unfortunatley I couldn’t work out how to do it.
Thes are unicode numbers, the display symbol has gone missing from the document so i was trying to replace them.
and i tried to google and get them back, but then it wouldnt work in word, i dont know why.
I searched everywhere in the symbol box but that didnt work either.
Then it was ASCII hex or decimal - so that was even more confusing.
These are some of the unicode numbers.
U+2326
U+2327
U+2328
U+2329
I am trying to output next to it the actual symbol - the nice looking friendly symbol.
Sub UnicodeSymbols()
Dim oRng As Word.Range
Dim oChr As Range
Dim oPara As Paragraph
For Each oChr In ActiveDocument.Range.Characters 'chrW(U+2326)
oRng.InsertAfter vbCr oChr
oRng.Collapse wdCollapseEnd
End Sub
' Greg Maxey Function -
Function GetSymbolValues(oRng) As String
Dim strFont As String
Dim lngANSI As Long, varHex As Variant
oRng.Select
With Selection
With Dialogs(wdDialogInsertSymbol)
strFont = .Font
lngANSI = .CharNum
varHex = Hex(lngANSI)
End With
End With
GetSymbolValues = lngANSI & "|" & strFont
lbl_Exit:
Exit Function
End Function
http://www.vbaexpress.com/forum/showthread.php?58534-Find-unique-characters
I just wanted to convert these numbers to the word display symbol
It would be such a relief if i can get the display symbol - i have searched every where today
is this at all possible?
To convert these u numbers to the actual symbol?
good midweek.
I have always had this problem, but i always left it be, as i could cope with a few sysmbols, and it didnt seem so much of a problem.
Well today I've been hunting down some u symbols, and I tried to make them in to vba but unfortunatley I couldn’t work out how to do it.
Thes are unicode numbers, the display symbol has gone missing from the document so i was trying to replace them.
and i tried to google and get them back, but then it wouldnt work in word, i dont know why.
I searched everywhere in the symbol box but that didnt work either.
Then it was ASCII hex or decimal - so that was even more confusing.
These are some of the unicode numbers.
U+2326
U+2327
U+2328
U+2329
I am trying to output next to it the actual symbol - the nice looking friendly symbol.
Sub UnicodeSymbols()
Dim oRng As Word.Range
Dim oChr As Range
Dim oPara As Paragraph
For Each oChr In ActiveDocument.Range.Characters 'chrW(U+2326)
oRng.InsertAfter vbCr oChr
oRng.Collapse wdCollapseEnd
End Sub
' Greg Maxey Function -
Function GetSymbolValues(oRng) As String
Dim strFont As String
Dim lngANSI As Long, varHex As Variant
oRng.Select
With Selection
With Dialogs(wdDialogInsertSymbol)
strFont = .Font
lngANSI = .CharNum
varHex = Hex(lngANSI)
End With
End With
GetSymbolValues = lngANSI & "|" & strFont
lbl_Exit:
Exit Function
End Function
http://www.vbaexpress.com/forum/showthread.php?58534-Find-unique-characters
I just wanted to convert these numbers to the word display symbol
It would be such a relief if i can get the display symbol - i have searched every where today
is this at all possible?
To convert these u numbers to the actual symbol?