check out http:Q_20489190.html... (example for you shown below):
leave your cell with this:
="It is our company’s objective that " & Course_Name & "'s fleet will receive professional, timely and systematic service."
but then put this code in the code module for whichever worksheet this applies to (press Alt+F11, double-click on the worksheet in the window on the left):
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim searchForThis As String: searchForThis = "Course_Name"
If InStr(1, Target.Formula, searchForThis) = 0 Then Exit Sub
Target.Characters(InStr(1,
End Sub
hope that helps!
-PtG
Main Topics
Browse All Topics





by: bruintjePosted on 2003-08-26 at 08:29:21ID: 9224825
Neither built-in worksheet functions nor UDFs can change formatting. In order to do what you want, you'd need an Event Macro.
, 1).Text) + 2).Font
roups?hl=e n&lr=&ie=U TF-8&oe=UT F-8& selm=2 7112002233 5543994%25 jemcgimpse y%40mvps.o rg
something like
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If .Column <= 2 Then
With Cells(.Row, 3)
.Value = Cells(.Row, 1).Text & vbNewLine & _
Cells(.Row, 2).Text
.Characters(1, Len(Cells(.Row, 1).Text)). _
Font.Bold = True
With .Characters(Len(Cells(.Row
.Bold = False
.Italic = True
End With
End With
End If
End With
End Sub
Put this in the worksheet code module (right-click on the worksheet tab, choose View Code, paste the code in the window that opens, then click the XL icon on the toolbar to return to XL)
If you only want this macro to affect a certain range, replace
If .Column <= 2 Then
with something like
If Not Intersect(.Cells, Range("A10:B20")) Is Nothing Then
source : http://groups.google.com/g
and the author is correct sorry to make it so hard but what you want to do is hard ......... if you need more help on getting this running as per requirement just comment