Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a cell with some formatting (an underlined digit) on one worksheet and
I would like to display it on another worksheet. Why won't the following code display the cell. The line inside the "IF" complains that "A value used in the formula is of the wrong type". I've tried many variations of this but this one I think gets the point across. Function CopyNumberWithOneUnderlinedCharacter(ByVal myCell As Range) Dim l_Position As Integer For l_Position = 1 To Len(myCell.Value) If myCell.Characters(Start:=l_Position, Length:=1).Font.Underline _ < xlUnderlineStyleNone Then CopyNumberWithOneUnderlinedCharacter.Characters(St art:=l_Position, Length:=1).Font.Underline = xlUnderlineStyleSingle End If Next l_Position End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match Function And Display Row Number | Excel Worksheet Functions | |||
Function to find/display the date X number of days later? | Excel Worksheet Functions | |||
display a number in another cell | Excel Worksheet Functions | |||
display text in one cell as a number in an adjacent cell in excel | New Users to Excel | |||
Finding an underlined character among several characters in a cell | Excel Programming |