Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to concatonate two words with first word in BOLD format? | Excel Discussion (Misc queries) | |||
Is it possible to make a word in a formula bold? | Excel Worksheet Functions | |||
Join bold and non-bold text in one cell | Excel Discussion (Misc queries) | |||
MS Excel should have MS word feature. | Setting up and Configuration of Excel | |||
Assign a Macro feature not showing | Excel Worksheet Functions |