Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6768905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:07:47+00:00 2026-05-26T15:07:47+00:00

I am using an Excel worksheet to allocate work and their are 3-4 users

  • 0

I am using an Excel worksheet to allocate work and their are 3-4 users in the Team. What I want to do is that based on some value I wish to allocate a task to a user (this step has been achieved with some VBA and Macros), the next step is to colour code each user. So, based on the name that appears in front of the task, the cell colour needs to change to reflect the user.

Basically, each user should automatically get a colour when his name comes up against any task. This colour will be consistent for that user and does not depend on the task.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:07:48+00:00Added an answer on May 26, 2026 at 3:07 pm

    If names are in the first column:

    Private Sub Worksheet_Change(ByVal Target As Range)
    
    Dim clr As Long, c As Range, v
    
        For Each c In Target.Cells
            If c.Column = 1 Then
                v = c.Value
                clr = -1
                If Len(v) > 0 Then
                    Select Case v
                    Case "Fred": clr = vbRed
                    Case "Jeff": clr = vbBlue
                    Case "Jane": clr = vbYellow
                    End Select
                End If
                If clr > 0 Then
                    c.Interior.Color = clr
                Else
                    c.Interior.ColorIndex = xlNone
                End If
            End If
        Next c
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading Excel worksheet data using C# and Microsoft.Office.Interop. The sheet contains some
I am using OLEDB to INSERT INTO an existing Excel worksheet. But I want
I am creating an Excel Worksheet from C# using Microsoft.Office.Interop.Excel, and I have not
I'm using Automation to get_Text from an Excel worksheet. I do this because I
INTRODUCTION I'm using excel downloads as a way of users downloading a score sheet,
I have a customer who is currently using Excel to do their staff planning.
I know we can open a particular worksheet of MS Excel using C# by
I'm opening an excel worksheet using the Microsoft.Office.Interop.Excel COM interface. I'm trying to adjust
I am using office 2007 excel work sheet function in c# code. VS2010 issues
Below is the code I'm using to load the data into an Excel worksheet,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.