L
Lostguy
When I push the "Print" macro button on a worksheet, the macro:
a. Checks that certain cells do not have duplicate data.
b. Autofits the rows.
c. Displays the Print dialogue so the sheet can be printed.
B. and C. work fine, but I am having trouble setting up A.
D21, D22, and D23 contain the same list of possible values via in-cell
dropdown: blank, dog, cat, chicken
If any of the values of D21, D22, or D23 are the same (3 out of 3, 2
out of 3, etc.) (but duplicate blanks are OK), stop the current macro,
put up a messagebox that says "You have cells that have the same data
in them. Please fix this and then repush the Print button!", you push
OK, and then the macro ends.
So
Dog, blank, blank is OK.
Dog, chicken, blank is OK
Dog, dog, blank is bad.
Dog, chicken, dog is bad.
Any help appreciated!
Thanks!
VR/Lost
a. Checks that certain cells do not have duplicate data.
b. Autofits the rows.
c. Displays the Print dialogue so the sheet can be printed.
B. and C. work fine, but I am having trouble setting up A.
D21, D22, and D23 contain the same list of possible values via in-cell
dropdown: blank, dog, cat, chicken
If any of the values of D21, D22, or D23 are the same (3 out of 3, 2
out of 3, etc.) (but duplicate blanks are OK), stop the current macro,
put up a messagebox that says "You have cells that have the same data
in them. Please fix this and then repush the Print button!", you push
OK, and then the macro ends.
So
Dog, blank, blank is OK.
Dog, chicken, blank is OK
Dog, dog, blank is bad.
Dog, chicken, dog is bad.
Any help appreciated!
Thanks!
VR/Lost