Nisha Patel
Problem
In Excel Office Scripts, I need to get a range starting from cell B2 all the way down to the last cell in column 2 that contains data, contiguously.
That is the equivalent, of selecting B2 and clicking Ctrl + Down.
What kind of method does that?
This is my code, and I want to replace .getRange("B2:B4") by something automatic.
Solution
Try
Microsoft documentation:
>getExtendedRange(direction, activeCell)