+ Reply to Thread
Results 1 to 4 of 4

Changing Text Changes Color and Counting Based On Color

  1. #1
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Changing Text Changes Color and Counting Based On Color

    I am a novice and still learning VBA.

    I am herewith enclosing excel sheet containing data.
    from Column A to M. except that D column is left blank for later entering data
    into that column.
    I need a VBA to person the following requirements.

    1. While I am in any row in Column A (named status) and If I Use the Keyboard
    shortcut Ctrl + Y it should insert the current row "Done" and Bold it and then
    it has to fill in the Color Yellow as Background color; also at the same time,
    the current row where "Done" is I want the Column B and upto I Column to be
    filled with Yellow color.

    2. While I am in any row in Column A (named status) and If I Use the Keyboard
    shortcut Ctrl + G it should insert the current row "My Desk" and Bold it and
    then it has to fill in the Color Green as Background color; also at the same
    time, the current row where "My Desk" is I want the Column B and upto I Column
    to be filled with Green color.

    3. Next, in the same way, I need for the other contents in Column A that is for
    Print Ready, Priority Sent, Searched with each referenced to the colors that are
    mentioned in the excel sheet with each a Keyboard shortcut assigned like the 1
    and 2 above.

    4. The complex part begins.
    I have already data in Column J beiginning at J13 named as Client and below that
    the names of clients that are multiple/occurrences are extracted from Column B
    named as Client and in the next Column K from K14 the counts of the clients that
    is multiple/occurrences are calculated already and is available.

    In Column L beginning at L10 and below is a list of Date Sent that are
    multiple/occurences extracted from Column E named as Date Sent and in the next
    Column M from M11 the counts of Date Sent that is multiple/Occurences are
    calculated already and is available.

    Now my requirement is that I want to use the functions IF and AND Then Else
    etc....in VBA to do the following.

    1. IF Column A = "Done" AND Column B = yellow background color AND Column B
    MATCHES with Column J14 Then Column O14 minus 1 from Column K14. For example;
    A2 shows Done. So using the Coloring method Column B to I will change to yellow
    as per my request for a VBA 1st requirement above. So Column B's background
    color is yellow and the contents of B2 is Aaron Bee and if the two criterias
    match with J14 Then this formula to reduce one transaction is displayed in O14.

    2. In the same way I want it for the other clients and upto the last row
    wherever it ends as the data will vary sometimes.

    3. Can i have this same way for the Date Sent counts minus 1 displayed at Column
    P11 onwards until last row wherever it ends as the data will vary sometimes
    If there is any queries in my explanation though I dont know if I have explained
    in an understanding way to you, please excuse me. Please raise any queries
    which I am unaware of. I want this to be Done only in VBA and not using
    conditional formatting.

    Thank you in advance.
    Attached Files Attached Files
    Last edited by Quivolt; 05-26-2017 at 10:28 AM. Reason: Forgot to Attach Excel File

  2. #2
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Re: Changing Text Changes Color and Counting Based On Color

    Anyone trying on this ....please let me know......thanks....

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Changing Text Changes Color and Counting Based On Color

    Your request is rather extensive so I'm not sure you find a forum member who is willing to do all this work for you for free. Perhaps you should post you problem in the forums commercial section and pay somebody to do this work.

    Still as I'm a bit bored I've written a macro for changing the text in the A column to "Done", set font to bold and interior color to yellow and with this as a model and a bit of effort from you I'm sure you can manage to write the macro you wish for.

    As I'm using the command
    Please Login or Register  to view this content.
    this macro will only fire when the "ActiveCell" is column 1 i.e. the "A" column.

    Please Login or Register  to view this content.
    Alf
    Last edited by Alf; 05-28-2017 at 05:23 PM.

  4. #4
    Forum Contributor
    Join Date
    05-23-2017
    Location
    Bang, India
    MS-Off Ver
    MS Office 2007
    Posts
    221

    Re: Changing Text Changes Color and Counting Based On Color

    Thanks brother for this help though of a little help, but I have got another forum member who helped me with this problem.....Anway....thanks for all your efforts......God bless you too.... i am closing this as solved...

+ 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. Replies: 1
    Last Post: 03-18-2015, 03:37 PM
  2. Changing text color of cell based on character
    By -Fate- in forum Excel General
    Replies: 8
    Last Post: 06-02-2010, 03:37 PM
  3. Changing text color based on a limit within the cell
    By jessetrunk in forum Excel General
    Replies: 1
    Last Post: 02-02-2010, 09:49 AM
  4. macro: changing color of coloumn header based on rows color
    By rajaid in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2009, 06:43 PM
  5. changing text color based on date
    By misty0705 in forum Excel General
    Replies: 2
    Last Post: 04-27-2007, 03:29 PM
  6. Changing Color of text based on a number
    By Yerfdog78 in forum Excel General
    Replies: 4
    Last Post: 02-20-2007, 03:34 AM
  7. Changing row tex color based on text during copy
    By mdpx2005 in forum Excel General
    Replies: 1
    Last Post: 01-28-2005, 01:43 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