+ Reply to Thread
Results 1 to 3 of 3

Looping thru a list of columns

  1. #1
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Herndon, VA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Looping thru a list of columns

    I want to loop through these columns specifically: C, J, O and R.

    In my For loop I need to find a way to say "loop thru these columns only."

    I can't figure out how to do this.

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Looping thru a list of columns

    try this

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    15,858

    Re: Looping thru a list of columns

    Hi Excel_vba,

    This looks like a job for Split and Array functions in VBA. Run this code on a blank sheet and watch it work..

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Looping through columns
    By figuraluk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-20-2013, 01:06 PM
  2. Looping through two columns
    By pablowilks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2013, 02:46 AM
  3. Do Until Looping (not looping through all other columns)
    By orle8050 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 10:37 AM
  4. Looping over columns
    By LATrojan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2010, 08:12 PM
  5. Help with looping thru columns
    By Chris-KPMG in forum Excel General
    Replies: 2
    Last Post: 05-19-2005, 04:06 PM

Tags for this Thread

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