Selecting multi Rows and Colums in a List Box
Hi, I have an Excel VBA user form called 'Booking' and a list box called 'Trades' The list box has 15 columns and about 100 rows of data in various row size groups. I have set the list box ListStyle to Plain and MultiSelect to Extended as I want to be able to select multiple rows using shift and click rather than using option buttons. My current code is:
With Booking.Trades
Range("A53").Value = .List(.ListIndex, 0)
Range("B53").Value = .List(.ListIndex, 1)
Range("C53").Value = .List(.ListIndex, 2)
Range("D53").Value = .List(.ListIndex, 3)
Range("E53").Value = .List(.ListIndex, 4)
Range("F53").Value = .List(.ListIndex, 5)
Range("G53").Value = .List(.ListIndex, 6)
Range("H53").Value = .List(.ListIndex, 7)
Range("I53").Value = .List(.ListIndex, 8)
'Range("J53").Value = .List(.ListIndex, 9)
Range("K53").Value = .List(.ListIndex, 10)
Range("L53").Value = .List(.ListIndex, 11)
Range("M53").Value = .List(.ListIndex, 12)
Range("N53").Value = .List(.ListIndex, 13)
Range("O53").Value = .List(.ListIndex, 14)
Which just adds the first row of selected data to my spread sheet in row 53
What I am trying to achieve is to add all selected rows of data to rows 53 down depending upon the total number of rows selected.
Any help would again be very much appreciated.
I am working with Windows Home Premium version 6.1.7601 SP 1 Build 7601and Excel version 14.0.6123.5001 (32 bit)
Regards,
Peter.