Hi,
I recorded a macro which includes the selection of a group of cells using the key strokes "end" + "arrow down".
This macro has to work an various input files with different length of columns so, I thought the "end" + "arrow down" would solve that as it works fine when I manually use these keystrokes. However, when I replay the macro, the selection of cells is identical to that when recording the macro, independent of how many cells are actually in the column in the worksheet in use.
How can I, using a macro, select all non blank cells in a column. The macro has to work for worksheets with different length of columns (no. of filled cells) ?
Thanks,
Ton
I recorded a macro which includes the selection of a group of cells using the key strokes "end" + "arrow down".
This macro has to work an various input files with different length of columns so, I thought the "end" + "arrow down" would solve that as it works fine when I manually use these keystrokes. However, when I replay the macro, the selection of cells is identical to that when recording the macro, independent of how many cells are actually in the column in the worksheet in use.
How can I, using a macro, select all non blank cells in a column. The macro has to work for worksheets with different length of columns (no. of filled cells) ?
Thanks,
Ton