I have a program which analyses a section of Excel data using automation to acquire the data from an Excel worksheet. Currently the limits of the data are the top left cell of the sheet (A1) and a cell defined in two text boxes txtNoColumns and txtNoRows. I then use a For...Next loop to iterate through the data (eg For Column = 1 to txtNoColumns). I would like to extend the capabilities to allow the user to select the region to be analysed by highlighting the data on the Excel spreadsheet, rather than using the text boxes. How do I get the top left and bottom right cells from the .Selection so that I can continue to use the For...Next method.
This must be easy !
Thanks,
Boggg1
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
This must be easy !
Thanks,
Boggg1
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)