Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 125
Default Assign Bold Feature to one of the Word in a Cell

Hi,

I had a querry,

Suppose I have values like in Cell A1: A100,. e.g.
ION-MastersHobby Accadmic Qulaification
ION-MastersEmployee 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Assign Bold Feature to one of the Word in a Cell

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" wrote in message
ups.com...
Hi,

I had a querry,

Suppose I have values like in Cell A1: A100,. e.g.
ION-MastersHobby Accadmic Qulaification
ION-MastersEmployee 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
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
How to concatonate two words with first word in BOLD format? nculbert Excel Discussion (Misc queries) 3 February 22nd 10 10:20 PM
Is it possible to make a word in a formula bold? SpielbergRules Excel Worksheet Functions 5 July 2nd 06 06:59 PM
Join bold and non-bold text in one cell bkincaid Excel Discussion (Misc queries) 3 March 21st 06 12:58 AM
MS Excel should have MS word feature. Usman Setting up and Configuration of Excel 2 November 24th 05 09:01 PM
Assign a Macro feature not showing Danno Excel Worksheet Functions 2 October 7th 05 07:37 PM


All times are GMT +1. The time now is 05:39 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"