Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jo
 
Posts: n/a
Default find a character and replace with a command in Excel

I need to replace with a formatting command (like you can in Word). I could
set up a macro to do this if it is possible to go to the actual character
within the cells, rather than locating the whole cell.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default find a character and replace with a command in Excel

It's not like MSWord, but you can get to each character of a string (not a
formula!).

For example this bolds colors the 3 character red for the activecell.

Option Explicit
Sub testme02()
Dim myCell As Range
Set myCell = ActiveCell
With myCell.Characters(Start:=3, Length:=1)
.Font.Bold = True
.Font.ColorIndex = 3
End With
End Sub

Jo wrote:

I need to replace with a formatting command (like you can in Word). I could
set up a macro to do this if it is possible to go to the actual character
within the cells, rather than locating the whole cell.


--

Dave Peterson
Reply
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
Using replace box to change a character into a CR (Alt-Enter char) Excel user Excel Discussion (Misc queries) 2 June 9th 06 12:26 PM
How to find and replace in Excel for special characters? Jill Excel Discussion (Misc queries) 1 May 25th 06 04:29 PM
Excel Find and Replace Donna Excel Discussion (Misc queries) 1 December 1st 05 05:29 AM
HELP - How to replace CRLF with a character withing an excel column Dino Buljubasic Excel Discussion (Misc queries) 1 August 25th 05 07:49 PM
How do you find and replace a Wildcard character in Excel? Wildcard Excel Discussion (Misc queries) 8 August 18th 05 01:18 AM


All times are GMT +1. The time now is 10:41 AM.

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

About Us

"It's about Microsoft Excel"