I am new to vba and I have vba code for activecell with offset codition. The following code selects few cells based on offset condtion. I want to get selected same number of cells if more than one cell or multiple cells are selected. please help me. Thanks in advance
ActiveCell.Offset(, 0).Resize(1, 2).Select
If i select cell b1, then on running the code it selects b1 and c1. I want solution for multiple random cells if selected in column b, the corresponding value should be selected.
I want to get selected same number of cells if more than one cell or multiple cells are selected.- clarify please, some example would be helpful. Btw,ActiveCell.Offset(, 0)the same asActiveCell. - Dmitry PavlivA1:B2andC1:D2? - Dmitry Pavliv