Originally Posted by
MannStewart
hi Karmapala
yes, the last final row of BK and BP is blank, but BO has data,
so, if i'm telling Excel to loop in BK,
how do i modify the instruction to tell it to loop in BO or column-50
which always has data until final bottom row?
Then the comparison needs to the column BO, MannStewart.
i tried this, it didn't work:
Please have a look at the bold code, MannStewart.
The "original" code, the value of col is 68 (column BP).
Then "col minus 1" is 67 (column BO).
Later when the col value changed to 64 (column BK)
then "col minus 1" is 63 (column BJ).
So it still won't work the same as the "original" code.
Originally Posted by
MannStewart
hi Karmapala
ok, based on your direction, i modified & i think i got it like this:
I don't quite understand how the code line above works as expected.
Because the "Not IsEmpty" cell to check from the code above is column BM, since the column of x is BK.
IF the "original" code line is :
since later on you modified column x = 63 (column BK)
then I think the other line should becomes :
Anyway, please forget about your modified code.
Just now I looked in the internet and found a new code instruction
which it seems if I add it in the beginning of the "original" code,
the result on the screen is maybe that you expect it :
The first line of the sub above is telling something like this :
"scroll column AW to the most left of the screen".
I don't know how is your screen,
but in my screen when column AW is at the most left on my screen,
the most right column on my screen is column BP.
Via F8 in VBA editor, please playing around with the value on the first line of the code,
until you find what you see on your screen fits to a state that you expected.
Bookmarks