+ Reply to Thread
Results 1 to 2 of 2

Looping through column - do I need two ranges?

  1. #1
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    174

    Looping through column - do I need two ranges?

    Hello -

    Objective:
    1) loop through column pulling out desired data and placing in desired cells
    2) if string 'aaaa' is found...loop until string 'page ' is found
    3) Pull out page number and place in desired cell
    4) Continue in same fashion until another 'page ' is found

    Sounds confusing but the attached files should help.

    *Note - contents of result file should go with original ranges.xlsm file

    Code I'm trying to use:

    Please Login or Register  to view this content.
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Looping through column - do I need two ranges?

    At first glance, you seem to have interchanged the row and column in the offset functions.
    Offset works like this: Offset(row,column).
    Look into that and it might work.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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] Looping through ranges in worksheet
    By stevow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-19-2012, 11:06 AM
  2. Looping Named Ranges
    By jensenleesen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2011, 10:07 PM
  3. looping calculation between two ranges
    By form in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2010, 11:43 AM
  4. Looping Through several Ranges via one Loop
    By helmekki in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2005, 10:20 AM
  5. Looping Ranges
    By purple_m in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2005, 08:24 AM

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