M
Mike Barnard (at work)
Hi all.
I'm new to the group and do very little with excel. I'd like to do
the following just to to make my life easier at work. I know about
conditional formatting, but what I want to do is a bit too complex for
that, I think. Therefore I must need VBA but I've never used it
before. Any pointers please?
I am doing a sheet which will keep track of the training needs of a
group of people. Some training needs to be done once every 6 months,
some once a year and some just once every 2 years.
So I have names on the left in the rows and each column refers to an
item of training. Item "A" may have one column because it's two
yearly, item "B" two columns for annually and item "C" four columns
because it's 6 monthly. All I'm doing is putting a "1" in a cell if
the training has been done.
I want....
- Columns that are not yet due to be greyed out.
- Annual columns to be greyed if current date is not within the year.
- 2 year columns to always be clear.
- Cells that are done to be green. (I've done this with conditional
formatting).
- Cells that are due this period to be yellow
- Cells that are missed to be red.
I guess I need an if then...
IF [contents of current cell] = 1
THEN cell goes green
ELSE IF this column is not due
Then grey it out
Hmmm... how to nest the rest of it neatly and properly?
Can anyone help me get this working please? Not the full code, but
ideas of how to get into the code, best ways of nesting, how to refer
to the dates?
Not much to ask I know!
Thanks.
Mike Barnard
Worthing, UK.
I'm new to the group and do very little with excel. I'd like to do
the following just to to make my life easier at work. I know about
conditional formatting, but what I want to do is a bit too complex for
that, I think. Therefore I must need VBA but I've never used it
before. Any pointers please?
I am doing a sheet which will keep track of the training needs of a
group of people. Some training needs to be done once every 6 months,
some once a year and some just once every 2 years.
So I have names on the left in the rows and each column refers to an
item of training. Item "A" may have one column because it's two
yearly, item "B" two columns for annually and item "C" four columns
because it's 6 monthly. All I'm doing is putting a "1" in a cell if
the training has been done.
I want....
- Columns that are not yet due to be greyed out.
- Annual columns to be greyed if current date is not within the year.
- 2 year columns to always be clear.
- Cells that are done to be green. (I've done this with conditional
formatting).
- Cells that are due this period to be yellow
- Cells that are missed to be red.
I guess I need an if then...
IF [contents of current cell] = 1
THEN cell goes green
ELSE IF this column is not due
Then grey it out
Hmmm... how to nest the rest of it neatly and properly?
Can anyone help me get this working please? Not the full code, but
ideas of how to get into the code, best ways of nesting, how to refer
to the dates?
Not much to ask I know!

Thanks.
Mike Barnard
Worthing, UK.