M
moily
Hi there,
I'm not very good at VBA and would appreciate some help on an issue I need
to resolve. The basic scenario is this:
This is a workbook that tracks holidays for a department. Each individual
has their own worksheet that is set up identically to everyone else's. There
are a few other worksheets in the workbook that must be be ignored.
The individual sheets will have data entered into them on an ad hoc basis in
either of two ranges. The first, B1762, is a full block of data but the
second, J17:L62 and O17:O62, skips two columns (M and N) in between.
When a cell has been filled out in a given worksheet all the other cells in
that row in that block in that worksheet must also be filled out. ie if B17
in worksheet Smith is filled out then C17 and D17 in the worksheet Smith must
also be filled in. If cell J17 is filled out in worksheet Jones then K17,
L17, O17 in worksheet Jones must also be filled in. If the row hasn't been
completed then the user shouldn't be allowed to close the file until it is
completed. They should get a warning box saying that all the information has
not been fully entered and the missing cells (along with the name of the
worksheet they are located in) should be listed.
Can anybody help? Given that I'm not very good at VBA but am trying to
learn I'd truly appreciate if you put notes as to how it's working so I can
learn it. Much appreciated in advance if you can!
Cheers,
Ann
I'm not very good at VBA and would appreciate some help on an issue I need
to resolve. The basic scenario is this:
This is a workbook that tracks holidays for a department. Each individual
has their own worksheet that is set up identically to everyone else's. There
are a few other worksheets in the workbook that must be be ignored.
The individual sheets will have data entered into them on an ad hoc basis in
either of two ranges. The first, B1762, is a full block of data but the
second, J17:L62 and O17:O62, skips two columns (M and N) in between.
When a cell has been filled out in a given worksheet all the other cells in
that row in that block in that worksheet must also be filled out. ie if B17
in worksheet Smith is filled out then C17 and D17 in the worksheet Smith must
also be filled in. If cell J17 is filled out in worksheet Jones then K17,
L17, O17 in worksheet Jones must also be filled in. If the row hasn't been
completed then the user shouldn't be allowed to close the file until it is
completed. They should get a warning box saying that all the information has
not been fully entered and the missing cells (along with the name of the
worksheet they are located in) should be listed.
Can anybody help? Given that I'm not very good at VBA but am trying to
learn I'd truly appreciate if you put notes as to how it's working so I can
learn it. Much appreciated in advance if you can!
Cheers,
Ann