+ Reply to Thread
Results 1 to 2 of 2

looping through a range of cells in excel

  1. #1
    Registered User
    Join Date
    07-23-2007
    Posts
    20

    Thumbs up looping through a range of cells in excel

    Hello Everyone. I just created a macro in excel which looks at a given date, compares that to a row of months and based on a match, moves the cursor underneath the match month. The macro works but I do not know how to do that for a range of cells. I basically want the macro to look at the date in the first row, match it to the months in the following columns (same row), then move to the row beneath it ,do the same thing for the corresponding months in the following columns (same row) and so on till it reaches a blank row. Here is the code which I have created for one cell:


    Please Login or Register  to view this content.
    I have attached the excel file as well.
    I really appreciate anyone who can help me with this.

    Thanks
    Robby
    [email protected]
    Attached Files Attached Files
    Last edited by rbhandair; 07-23-2007 at 02:14 PM. Reason: Didn't Wrap Code

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    rbhandair

    Welcome to excelforum

    Please read forum rules & wrap your VBA code - see links below

    There is no attachement with your posting. This site has limits on file types & file sizes that can be attached

    If you do not understand the VBA code wrap instructions have a look at my last reply in this thread
    http://www.excelforum.com/showthread.php?t=583950
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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