PDA

View Full Version : Add superscript to text in textbox



DeltaJ
11-30-2014, 01:01 PM
Using VBA I can write text to a textbox such as "Friday 10th November". I can set the font, font size, etc but so far have failed to find a way to set "th" as a superscript. I have tried things that might work but get errors such as "not supported", "out of range" and so on. I have almost come to the conclusion it is not possible, but perhaps someone here has a solution?
Thanks for any help.

macropod
11-30-2014, 02:48 PM
I have already answered this at: https://social.msdn.microsoft.com/Forums/office/en-US/3698aa76-1187-4e87-9cfe-f38be51e93a2/alter-text-in-a-text-box-to-obtain-a-date-superscript-using-vba?forum=worddev

Also cross-posted at: http://www.msofficeforums.com/word-vba/23763-insert-superscript-into-textbox.html
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184

DeltaJ
11-30-2014, 03:46 PM
Thank you for your solution which I look forward to implementing. I didnt realise how closely linked these forums were and apologies for the unnecessary duplication of effort. Previously I had been working on Joomla where the forums seem disconnected so I commoinly posted a question in different places.
I appreciate your time and expertise. VBA is very new to me and its proving an interesting and challenging exercise.