+ Reply to Thread
Results 1 to 3 of 3

Change font color in Macro

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    28

    Change font color in Macro

    This macro below works fine. I just don't know how to change the font of the date 12/29/13 to a different color like red or blue. How do i do this?


    Sub Assign()
    Dim LastFilledCell As Range
    Set LastFilledCell = Range("a9:b999").Find(What:="*", Searchorder:=xlRows, _
    SearchDirection:=xlPrevious, LookIn:=xlValues)
    If LastFilledCell Is Nothing Then
    Range("a9").Value = "12/29/13"
    ElseIf LastFilledCell.Row < 500000 Then
    LastFilledCell.Offset(1, 1) = "12/29/13"
    Else
    MsgBox "Range is completely filled!"
    End If
    End Sub

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Change font color in Macro

    Please Login or Register  to view this content.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    05-30-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Change font color in Macro

    Thanks works great

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. macro to change font color of a cell
    By James C in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2013, 12:39 PM
  2. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  3. Change a Font Color with Macro
    By rcrawford1960 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2011, 04:10 PM
  4. Macro to Change Font Color
    By Daniel R. Young in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2005, 04:05 PM
  5. Macro Help:change the font color
    By schlempyasst in forum Excel General
    Replies: 0
    Last Post: 05-05-2005, 10:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1