Hello, I am new to this forum so apologies if this is in the wrong place.
I'm writing a VBA code to open an Excel file and create a scatter graph using only two columns, which is pretty simple. However, I'd like to know how to select only the cells that have a value. For example, the excel sheet may be empty apart from data between S112:T7800. If I select the whole of both columns (S1:T1400000), the graph displays a lot of blanks spaces (as well as being inefficient code!). The data array will always be in column S to T, but the rows at which the array starts and finishes varies.
Any help would be appreciated as I'm at a bit of a loss.
Thanks in advance,
Dan
I'm writing a VBA code to open an Excel file and create a scatter graph using only two columns, which is pretty simple. However, I'd like to know how to select only the cells that have a value. For example, the excel sheet may be empty apart from data between S112:T7800. If I select the whole of both columns (S1:T1400000), the graph displays a lot of blanks spaces (as well as being inefficient code!). The data array will always be in column S to T, but the rows at which the array starts and finishes varies.
Any help would be appreciated as I'm at a bit of a loss.
Thanks in advance,
Dan