ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copying Formated Text (https://www.excelbanter.com/excel-programming/309159-copying-formated-text.html)

Brad Young

Copying Formated Text
 
Hi,
Does anyone know is there is away to copy formated text such as the
subscript '2' in say H2O from an addin to a blank worksheet or into a
userform. At the moment I have to format each cell with code which is a
pain as there are hundreds of characters to be formated and I have use
something like this for each character.

If j = 1 Then
Set ochars = Range("J10").Characters(2,1)
With ochars
.Font.Subscript = True
End With

Thanks
Brad



All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com