+ Reply to Thread
Results 1 to 3 of 3

Code to change cell text color when macro has been applied?

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Midwest, US
    MS-Off Ver
    Excel 2010
    Posts
    26

    Code to change cell text color when macro has been applied?

    Hello,
    First time posting, love the site. Always been an Excel fan, new to macros, so bear with me

    I have created a barcode log sheet. Nothing fancy, my guys scan product barcodes (Code 39) onto a single column for tracking purposes.

    I already added a macro that will remove the check digits of the scanned number, 1st & last digit of the active cell. No issues on this but, I have been informed that users have trouble remembering which cells they applied the macro to. (We have varying barcode lengths so they can't go by character count easily.)

    I would like to have my column (C) be preset to have the barcode numbers Text be entered/scanned in Red (this part is easy, I will just preset the cells to red), then when users hit the macro button it will remove the 1st & last digit, Plus turn the text color to black.

    Any ideas? All suggestions appreciated! Below is my code I am using to remove the 1st & last digit of the scanned numbers.

    Please Login or Register  to view this content.
    -CM

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Code to change cell text color when macro has been applied?

    Add this code to change the text colour
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    Midwest, US
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Code to change cell text color when macro has been applied?

    That works Perfectly.

    Thanks!

+ 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