W
WLMPilot
This is a 3 part question. I have a workbook with several sheets. The one I
am concerned with is PCEMS. This sheet has a chart for each year beginning
with 2006. I want to change the color of two rows when the workbook is
opened. This will be done via conditional formatting using VBA. The two
rows represent the current payperiod.
Within each chart are 52 weeks (ie 52 rows not counting headers, etc). I
can figure out how to locate the correct chart based on year and then
payperiod, I just need to figure out the following:
1) How to execute macro when workbook is opened?
2) What is the code to change the color for the cells?
3) Can an entire range be changed at once or do I have to change each cell
one at a time?
Thanks,
Les
am concerned with is PCEMS. This sheet has a chart for each year beginning
with 2006. I want to change the color of two rows when the workbook is
opened. This will be done via conditional formatting using VBA. The two
rows represent the current payperiod.
Within each chart are 52 weeks (ie 52 rows not counting headers, etc). I
can figure out how to locate the correct chart based on year and then
payperiod, I just need to figure out the following:
1) How to execute macro when workbook is opened?
2) What is the code to change the color for the cells?
3) Can an entire range be changed at once or do I have to change each cell
one at a time?
Thanks,
Les