+ Reply to Thread
Results 1 to 5 of 5

Select Columns

  1. #1
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Select Columns

    I want to select a number of columns. I know the column indexes.

    I want to use something like (Doesn't work):
    Please Login or Register  to view this content.
    instead of (Works):
    Please Login or Register  to view this content.
    Rows can be selected according to:
    Please Login or Register  to view this content.
    I have written this code that works. But there must be an easier way:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,526

    Re: Select Columns

    Hi there,

    You can use this to select columns 2 (B) to 6 (F) inclusive:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Re: Select Columns

    Thanks Robert,

    Quote Originally Posted by Trebor76 View Post
    Hi there,

    You can use this to select columns 2 (B) to 6 (F) inclusive:

    Please Login or Register  to view this content.
    HTH

    Robert

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,526

    Re: Select Columns

    You're welcome. Glad we got it sorted.

    Robert

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Issue w/ Current Region, Select 3 Columns of Data without selecting adjacent columns
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 02:57 PM
  2. [SOLVED] Multi Select ListBox, 4 columns, use NamedRange, Columns to use in list Nonconsecutive
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2013, 11:01 AM
  3. [SOLVED] Unable to select columns with columns.("D:D").select
    By KAPearson in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2012, 09:16 AM
  4. Code to prevent user to Select COLUMNS but allow to select ROWS
    By tengrosita in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2011, 03:46 AM
  5. Select columns and add the content of the columns to a mail
    By bananas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2007, 02:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1