+ Reply to Thread
Results 1 to 11 of 11

Changing all blue color numbers/texts to black color in cells...

  1. #1
    Registered User
    Join Date
    07-20-2009
    Location
    maryland, usa
    MS-Off Ver
    Latest Excel (Excel 365)
    Posts
    30

    Changing all blue color numbers/texts to black color in cells...

    Hi guys,

    Please help me if anyone knows a VBA code to do this task easily.
    I attached a sample and all I'm trying to do is to change all blue color fonts into black.

    Thanks as always.

    Brian
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Changing all blue color numbers/texts to black color in cells...

    Don't laugh.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-20-2009
    Location
    maryland, usa
    MS-Off Ver
    Latest Excel (Excel 365)
    Posts
    30

    Re: Changing all blue color numbers/texts to black color in cells...

    Thanks, but I want to apply it to whole workbook, not only column c.

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Changing all blue color numbers/texts to black color in cells...

    Oh. Try this then.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-20-2009
    Location
    maryland, usa
    MS-Off Ver
    Latest Excel (Excel 365)
    Posts
    30

    Re: Changing all blue color numbers/texts to black color in cells...

    JieJenn,

    Thanks so much - it works perfect!

    Just one more question - I realized that some of cells actually have a few different colors and using your formula - they're all changed to black color.
    In the VBA code you wrote for me, is it possible to add some sort of if function, such as changing only colors in 160, 184, 214 (blue font color I'm using).
    Thanks so much!

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Changing all blue color numbers/texts to black color in cells...

    change ws.cell to ws.Range([insert range here])

  7. #7
    Registered User
    Join Date
    07-20-2009
    Location
    maryland, usa
    MS-Off Ver
    Latest Excel (Excel 365)
    Posts
    30

    Re: Changing all blue color numbers/texts to black color in cells...

    like this right?

    Sub Test()
    Dim ws As Worksheet
    For Each ws In ThisWorkbook.Worksheets
    ws.Range([160,184,214]).Font.color = vbBlack
    Next ws

    End Sub

  8. #8
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Changing all blue color numbers/texts to black color in cells...

    Oh wait. I mis-read your post. Can you upload a sample file?

  9. #9
    Registered User
    Join Date
    07-20-2009
    Location
    maryland, usa
    MS-Off Ver
    Latest Excel (Excel 365)
    Posts
    30

    Re: Changing all blue color numbers/texts to black color in cells...

    Quote Originally Posted by JieJenn View Post
    Oh wait. I mis-read your post. Can you upload a sample file?
    JieJenn,
    I don't think I can upload sample in reply...but I actually attached the sample in my first post.
    Basically, I only want certain color font to be changed to black throughout the workbook.

  10. #10
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Changing all blue color numbers/texts to black color in cells...

    Try this. the blue color font index in your sample file is 12611584

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    07-20-2009
    Location
    maryland, usa
    MS-Off Ver
    Latest Excel (Excel 365)
    Posts
    30

    Re: Changing all blue color numbers/texts to black color in cells...

    Thank you so much for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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