I have a worksheet that has 3 columns of numbers, each column having 26 rows (H2:H26, L2:L26 and P2:P26) and on the same worksheet a matrix which is 4 x 15 (4 cells in adjoining columns and 15 rows down B3:E17).
I would like a macro that would upon clicking a button, or clicking or doubleclick the mouse in a certain area such as the 4x15 matrix area or H2:H26, L2:L26 or P2:P26 execute a macro.
The user after executing the macro as describe above would click on one on the cells in column H2:H26, L2:L26 or P2:P26. When the first cell in (H2:H26, L2:L26 or P2:P26) is clicked or doubleclicked it would copy the cell contents from that cell into cell B3, upon the next click or doubleclick it would copy the cell contents from the cell clicked in column H2:H26, L2:L26 or P2:P26 into cell C3, ditto for D3, ditto for E3.
The next click or doubleclick would copy the cell contents from that cell in column H2:H26, L2:L26 or P2:P26 down one row in the matrix to B4, next C4, next D4, then E4.
Next down one row, copy the cell contents of the cell clicked to B5, C5, D5, E5
Down one row until all 15 rows are filled (last cell filled would be E17)
The macro would end when clicked outside of column H2:H26, L2:L26 or P2:P26.
I have seen some private macros with this type of functionality and have tried to modify them without any luck.
Thanks for your help
Lou
I would like a macro that would upon clicking a button, or clicking or doubleclick the mouse in a certain area such as the 4x15 matrix area or H2:H26, L2:L26 or P2:P26 execute a macro.
The user after executing the macro as describe above would click on one on the cells in column H2:H26, L2:L26 or P2:P26. When the first cell in (H2:H26, L2:L26 or P2:P26) is clicked or doubleclicked it would copy the cell contents from that cell into cell B3, upon the next click or doubleclick it would copy the cell contents from the cell clicked in column H2:H26, L2:L26 or P2:P26 into cell C3, ditto for D3, ditto for E3.
The next click or doubleclick would copy the cell contents from that cell in column H2:H26, L2:L26 or P2:P26 down one row in the matrix to B4, next C4, next D4, then E4.
Next down one row, copy the cell contents of the cell clicked to B5, C5, D5, E5
Down one row until all 15 rows are filled (last cell filled would be E17)
The macro would end when clicked outside of column H2:H26, L2:L26 or P2:P26.
I have seen some private macros with this type of functionality and have tried to modify them without any luck.
Thanks for your help
Lou