Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Tough One - search for string and BOLD it.

Yes, it should be possible. No time to write code for you, but to get
you started, record a Macro and manually make some text within text
bold - you should seee something similar to:

With ActiveCell.Characters(Start:=3, Length:=5).Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With

This applies the font settings to characters 3-7 of the string in the
current cell.

Next, you'll need to replace
Start:=3, Length:=5
with the actual start and length of your smaller text string. To do
this, look at using the FIND() worksheet formula.

Finally, to locate a cell that has a long string which containins your
shorter string, use the .Find method of Range.
Doug929 wrote:
OK, I tried to get this going but wonder if any one has done this and has it
written, sounds simple enough....

I want to walk down a column and look for a certain word in the cell and
then bold just the word. Can it be done? Dave?....

walking down the column is easy enough but to find just the word and bold
just the word? I dont know...


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
Bold in string concatenation Steen Excel Discussion (Misc queries) 12 November 7th 06 12:49 AM
Using [bold] as a criterion to search tevia Excel Discussion (Misc queries) 4 March 17th 06 02:59 PM
search a string withing a string : find / search hangs itarnak[_9_] Excel Programming 4 October 24th 05 03:19 PM
Make string bold? Adam Excel Programming 2 April 24th 05 03:50 PM
How do I make this string bold? Adam Excel Programming 1 March 9th 05 02:56 AM


All times are GMT +1. The time now is 11:45 PM.

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"