+ Reply to Thread
Results 1 to 4 of 4

How to write a macro code for specific font color?

  1. #1
    Registered User
    Join Date
    06-17-2020
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    50

    How to write a macro code for specific font color?

    Specific font color is Tan, Background 2, Darker 50%

    I want a VBA macro code for this.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to write a macro code for specific font color?

    You can use the macro recorder to get the code.

    View => macro => record macro.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-17-2020
    Location
    USA
    MS-Off Ver
    Office 2013
    Posts
    50

    Re: How to write a macro code for specific font color?

    I got it:

    Sub Macro2()
    '
    ' Macro2 Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+G
    '
    ActiveCell.Select
    With Selection.Font
    .Color = -11236716
    .TintAndShade = 0
    End With
    End Sub

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to write a macro code for specific font color?

    Glad I could help.

    Thanks for marking the question solved.

    You can add reputation by clicking on the star * add reputation.

    Please add your code between # according to the forum rules.

+ 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 E-mail font and font color
    By phillipsdp11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2014, 12:09 PM
  2. Calculate by specific font color?
    By lorne17 in forum Excel General
    Replies: 9
    Last Post: 08-05-2011, 08:15 PM
  3. Replies: 3
    Last Post: 07-06-2011, 01:30 PM
  4. difficulty writing code for changing font color if cell contains specific text
    By curbster in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-13-2009, 03:23 AM
  5. How to write a formula that changes font color?
    By GetURWingz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2007, 04:24 PM
  6. [SOLVED] how do i write a macro to change font color with live data?
    By CJS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2006, 01:35 PM

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