Referring to a Range of Columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings to all

How can I select a range of columns with column index? I used Columns ("2:7").select, but it is not working.
Only Columns ("B:H").Select will work. If I convert index number to alpha, how can I convert beyond Z or z, like AA, AB...? Thanks.
 
ThisWorkbook.ActiveSheet.Range(Columns(2), Columns(4)).Select
will select the range comprising columns 2 to 4, i.e. columns 2, 3 & 4 (=
columns B, C & D)

luvgreen said:
Greetings to all!

How can I select a range of columns with column index? I used Columns
("2:7").select, but it is not working.
Only Columns ("B:H").Select will work. If I convert index number to alpha,
how can I convert beyond Z or z, like AA, AB...? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top