Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am reading contents of an Excel file from a VB6 program. I need find
out the superscript and mixed font format info of each cell (such as "Current Gain (A/cm2)", "Sheet Resistance (W/sq)", that 2 is superscript and W is Omega in Symbol font). When I use, for example, Range(strRange).Font.Superscript or Range(strRange).Font.Name, it returns Null. Any help will be greatly appreciated. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It's always best to read any Font properties to a Variant as it can accept a
Null in case of mixed formats. Eg v = cell.font.superscript If IsNull(v) then ' must be mixed redim arr(1 to len(cell)) ' could be As boolean for Superscript for i = 1 to len(cell) arr(i) = cell.characters(i,1).superscript etc Regards, Peter T wrote in message ... I am reading contents of an Excel file from a VB6 program. I need find out the superscript and mixed font format info of each cell (such as "Current Gain (A/cm2)", "Sheet Resistance (W/sq)", that 2 is superscript and W is Omega in Symbol font). When I use, for example, Range(strRange).Font.Superscript or Range(strRange).Font.Name, it returns Null. Any help will be greatly appreciated. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don't forget to read the responses to yesterday's post.
- Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ wrote in message ... I am reading contents of an Excel file from a VB6 program. I need find out the superscript and mixed font format info of each cell (such as "Current Gain (A/cm2)", "Sheet Resistance (W/sq)", that 2 is superscript and W is Omega in Symbol font). When I use, for example, Range(strRange).Font.Superscript or Range(strRange).Font.Name, it returns Null. Any help will be greatly appreciated. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, Peter and Jon.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I add subscript/superscript font to the Excel toolbar?? | Excel Discussion (Misc queries) | |||
Obtain Word Doc Info Into Excel | Excel Programming | |||
How can i change the font in Legend box in excel to superscript, n | Charts and Charting in Excel | |||
How can i change the font in Legend box in excel to superscript, n | Charts and Charting in Excel | |||
Multiple font styles (superscript and subscript, for example) | Charts and Charting in Excel |