Hello all,
Do any of you know the code to select all the cells in a random row of data based on the amount of field names in row1?
Thanks
Hello all,
Do any of you know the code to select all the cells in a random row of data based on the amount of field names in row1?
Thanks
BrownBoy
If happy, mark "SOVLED" & add to "REP"
You could do a CountA on row 1 and that would tell you how many fields it contained.
Please Login or Register to view this content.
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
Thanks xladept,
To clarify I'm looking for the column equivalent of the following:
Please Login or Register to view this content.
Do you mean that you want to select an entire row?
Please clarify exactly what you want. An example would help too.
??Please Login or Register to view this content.
Selects in Row 1 from A1 to the last used cell in Row 2
Please Login or Register to view this content.
jolivanes and xladept,
I used the CountA to get what I needed done, but I was looking for what jolivanes posted. Now I have both in my VBA inventory. Thanks.
You're welcome and thanks for the rep!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks