LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Get ColorIndex from Character in String

Hi All,
Could anyone help solve this problem I have?
I need to determine the colorIndex of a character from a string stored
in a cell.
I can call the characters one by one, and there seems to be a
..font.colorIndex method but I can not seem to store the value.

Here is the code I'm trying.


Sub ColourAndReportCaharcter()
Dim i, j As Integer
Dim N As Variant
j = ActiveCell.Characters.Count
For i = 1 To j
N = ActiveCell.Characters(i).Font.ColorIndex 'This Fails? Why?
Debug.Print TypeName(N) ' TypeName is 'ERROR"
Next i
End Sub


Thanks for any help.
Jason

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stepping through each character in a character string Barb Reinhardt Excel Programming 3 June 6th 07 06:23 PM
find a character in a string kevcar40 Excel Discussion (Misc queries) 4 June 5th 07 12:10 PM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
Wild Character in String Himansu Excel Programming 2 October 20th 06 06:36 PM
Function to return Character Position of Xth character within a string Andibevan[_2_] Excel Programming 4 June 9th 05 03:24 PM


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"