Font.Color = vbWhite

Livin404

Well-known Member
Joined
Jan 7, 2019
Messages
774
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Good day, the following code works perfect, but I tried to insert
Excel Formula:
Font.Color = vbWhite
before the end and it does seem to work. I would like the font to be white and not wrapped.

Thank you,

VBA Code:
Sub Title_Name()
Dim Lastrow As Long
Dim wName As String, wSurame As String, Title As String
Dim x As Variant
Lastrow = ActiveSheet.Cells(Rows.count, "A").End(xlUp).Row
 wName = Replace(Application.UserName, "ESQ", "MR")
wSurname = UCase(Split(wName, ",")(0))
For Each x In Array("THEY", "", "MR", "MA'AM", "MS", "MRS", "MSgt")
    If InStr(wName, x) > 0 Then
        Title = UCase(x)
        Exit For
    End If
Next x

Range("A" & Lastrow + 8).Value = "UPDATED BY: " & Title & wSurname
End Sub
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
It would be something like:

VBA Code:
With Range("A" & Lastrow + 8)
    .Value = "UPDATED BY: " & Title & wSurname
   .Font.Color = vbWhite
   .WrapText = False
End With
 
Upvote 1
Solution
It would be something like:

VBA Code:
With Range("A" & Lastrow + 8)
    .Value = "UPDATED BY: " & Title & wSurname
   .Font.Color = vbWhite
   .WrapText = False
End With
That's just wonderful thank you so much.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top