+ Reply to Thread
Results 1 to 3 of 3

Select columns programmatically

  1. #1
    Registered User
    Join Date
    03-23-2004
    Posts
    10

    Unhappy Select columns programmatically

    I have to select several columns programmatically, the problem is that the columns are variable so I cannot do Columns("BJ:BL").Select for instance. I know the position of the column though from one of the variables in my program
    I can do Columns(columnCount).Select; but I tried Columns(columnCount:columnCount+3).Select and does not work. It is just a syntax problem.
    Thanks

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Please Login or Register  to view this content.
    HTH
    Carim

  3. #3
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    try this

    Range(Cells(1, columncount), Cells(1, columncount+3)).EntireColumn.Select
    not a professional, just trying to assist.....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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