+ Reply to Thread
Results 1 to 2 of 2

for loop through range of columns but skip every other column

  1. #1
    Forum Contributor
    Join Date
    01-16-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    136

    for loop through range of columns but skip every other column

    Hi,

    I wish to loop through some columns and do some calculations. I know how to do this but need to make the loop skip every other column as this is not needed.

    A b c d e

    1 t 7 l 4

    What it does is sums column a&c = 7
    Then c & e =11 so skips column b

  2. #2
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    862

    Re: for loop through range of columns but skip every other column

    Please Login or Register  to view this content.
    The Step keyword is the key.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

+ 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. Select range, skip columns/rows
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2015, 07:12 PM
  2. [SOLVED] For loop - skip to next cell in range
    By gombi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2014, 04:43 PM
  3. I need to select a range and skip over the hidden columns
    By morangeman in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-06-2014, 09:29 PM
  4. Replies: 4
    Last Post: 09-23-2013, 06:19 PM
  5. Sort multiple columns to one column, skip blanks
    By AlexCoyne in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-20-2013, 03:13 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