Hi saputroa272
. Just a quick follow up here as I was working on a similar problem and had horrendous problems in checking for “Empty cells”……
. 1) Usually .Value would be taken as default if omitted. But interestingly here it leads to your code not working, that is to say NextFree2 seemed to give erratic results which does not appear to be the case with your modified code.
. A strange problem, but emphasizes as always not too rely on the default and always remember to include .Value….
. 2) There could still be some problems lurking to catch you out unexpectedly to do with “Empty cells”..
.. here is another code alternative ( 2 versions ) which my be more appropriate, or at least another alternative to have as a back- up..
Full code with explaining comments:
Shortened / Simplified code:
Alan
Bookmarks