The second time through there is no other cells below the cell containing "CpuFNode" and so the selection.end(xlDown) goes all the way to the bottom of the worksheet......
That appears to be the problem. Maybe you need a command something like:
If activecell.offset(1,0) = "" then activecell.offset(-1,0).activate
Though this would get into trouble at the top of the row...
Philby
EDIT: No, I've gotten confused. But for some reason the select to end command is goign to the bottom. I just can't tell why. How many instances of the "CPU" thing are there?


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks