Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I face a problem in detecting bold data in a shape
ActiveSheet.Shapes("Text Box 17").Select MsgBox Selection.Characters(Start:=i, Length:=1).Font.FontStyle when i use this similiar code to detect bolded character in a cell, it works fine. but when i use this code to detect bolded data in a text box or rectangle shape the error " invalid use of null message" appear how to check bolded data in a shape in Excel 2000 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() normally you'll get the null if you want to return a property for multiple characters with different formatting. but as you found within textframes the Fontstyle seems buggy. However the Bold/Italic etc properties work correctly Sub foo() Dim o As Object, f As Font Set o = Sheet1.Shapes(1).TextFrame Set f = o.Characters(1, 1).Font Msgbox f.Bold & vblf & f.Italic End Sub -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam Laguna wrote : I face a problem in detecting bold data in a shape ActiveSheet.Shapes("Text Box 17").Select MsgBox Selection.Characters(Start:=i, Length:=1).Font.FontStyle when i use this similiar code to detect bolded character in a cell, it works fine. but when i use this code to detect bolded data in a text box or rectangle shape the error " invalid use of null message" appear how to check bolded data in a shape in Excel 2000 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 - Formatting text in cell (character by character) | Excel Discussion (Misc queries) | |||
Text changing colour when bolded? | Excel Discussion (Misc queries) | |||
Bolded Text To Column | Excel Worksheet Functions | |||
check if the text string start with a specific character | New Users to Excel | |||
how to sort list, bolded items from no bolded? | Excel Discussion (Misc queries) |