PC Review


Reply
Thread Tools Rate Thread

Assign Bold Feature to one of the Word in a Cell

 
 
Akash
Guest
Posts: n/a
 
      30th Jul 2007
Hi,

I had a querry,

Suppose I have values like in Cell A1: A100,. e.g.
ION-Masters>Hobby Accadmic Qulaification
ION-Masters>Employee Category

Now what i want to Bold the word "Masters" in all the Cell of
(A1:A100)

What should i do in this regard

Thanks

Akash Maheshwari

 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      30th Jul 2007
Try something like the following:

Sub AAA()
Dim Rng As Range
Dim Pos As Integer
Application.ScreenUpdating = False
For Each Rng In Range("A1:A100")
' Case sensitive match. use vbTextCompare instead
' of vbBinaryCompare to ignore upper/lower case
Pos = InStr(1, Rng.Text, "Master", vbBinaryCompare)
If Pos > 0 Then
Rng.Characters(Pos, 6).Font.Bold = True
End If
Next Rng
Application.ScreenUpdating = True
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Akash" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I had a querry,
>
> Suppose I have values like in Cell A1: A100,. e.g.
> ION-Masters>Hobby Accadmic Qulaification
> ION-Masters>Employee Category
>
> Now what i want to Bold the word "Masters" in all the Cell of
> (A1:A100)
>
> What should i do in this regard
>
> Thanks
>
> Akash Maheshwari
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show results in bold if a cell is in bold Diana Microsoft Excel Discussion 2 20th Dec 2009 05:18 PM
Make 1st word in cell bold after combining words from two cells RJQMAN@gmail.com Microsoft Excel Programming 10 5th Jun 2008 06:31 PM
Join bold and non-bold text in one cell bkincaid Microsoft Excel Misc 3 21st Mar 2006 12:58 AM
Problem w/ Bold feature in Word.... =?Utf-8?B?dW5pbWF0cml4MQ==?= Windows XP General 1 17th Jan 2006 05:12 PM
Excel pauses when I use the bold cell feature Jeff Microsoft Excel Misc 3 11th Mar 2004 12:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 PM.