I have a row of data (A3 to A11) that I would like to select (there are no blanks in this range). I am using the following code:
Range(ws.Range("A3"), ws.Range("A3").End(xlToRight)).Select
However, this code is only selecting cell A3 and not A3 to A11. I have also tried xlToLeft and that still only selects A3 as well...How can I correct this? Thanks.
Just because of your title, here are a couple ways to select a row
to select all the data on a row,
Also in your example, you're missing the "ws." prefix from the outermost range object - without specifying the worksheet, Excel will try to refer to the ActiveSheet and you've just written a potential bug.
I think this overlaps with Populating a list box with data from worksheet. I suggest you continue any issues related to this thread back in the original posting
As per prior question to select vertically you use xlDown and xlUp (not xltoRight or xltoLeft)
You need to select range from A3 to A11. This would do the trick
Try This...
ActiveSheet.UsedRange.EntireRow.Select
How about: