![]() |
#1
|
|||
|
|||
![]() dear all we would like to italic the word "peter" in column e peter is good peter is bad he is peter pet is animal the result will be peter is good peter is bad he is peter pet is animal the vba code dont run , what wrong...? pls help Sub testz() For i = 1 To 100 pos = InStr(Range("e(i)").Value, "peter") With Range("e(i)").Characters(Start:=pos, Length:=5).Font .FontStyle = "Italic" End With Next End Sub Thanks Tom ![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
d4okeefe | Word VBA | 18 | 06-30-2022 11:35 PM |
![]() |
Jamal NUMAN | Word | 4 | 07-08-2011 04:02 AM |
Can't use Bold and Italic | khmerguy | Word | 3 | 03-31-2011 12:48 PM |
![]() |
cornettd | PowerPoint | 1 | 05-10-2010 10:07 AM |