not quite sure I understand the use for your code..
it simply finds the first occupied cell in column A after row 171, so why bring in all the other cells?
you could simplify by selecting A171 then do an xlDown.
anyway.. based on that, I understand that what you want is to check for unused cells in a cellrange from A171 down to the first colum in A with value.; within other columns.. correct?
Modified the code for that use as follows:
note: if this is not what you want, please attach an example workbook so it's easier to understand your wishes.
Bookmarks