+ Reply to Thread
Results 1 to 3 of 3

Looping on a multiple ranges of data

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    St. Paul, MN
    MS-Off Ver
    Excel 2010
    Posts
    2

    Looping on a multiple ranges of data

    Hi, I'm relatively new to using VBA so this hopefully is a pretty easy question. I'm trying to get a macro to do a repetitive task on large set of data in excel.

    I trying to write a macro that has the ability to run an excel formula on a set of data and paste the results somewhere then run the same formula one the next set of data a few rows down. I need this process to repeat a few thousand times so I was thinking some kind of loop but wasn't sure how to do it with having it loop on a different range of cells each time. I'd appreciate any help, Thanks!!

  2. #2
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: Looping on a multiple ranges of data

    Hi Trent,

    do you have any sample workbook to start with?

    THanks
    Lex

  3. #3
    Registered User
    Join Date
    02-20-2014
    Location
    St. Paul, MN
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Looping on a multiple ranges of data

    Hi,

    Yeah, I have my working file with all my data and the formulas. I built a very rough macro to do the simulation on the entire set of data but there's no way I can use the same macro on different segments of the data. I know there's a better way of doing it, I'm just not as savvy with VBA as I am with excel. Below is an example of what I'm trying to write into VBA....
    Capture1.jpg
    Thanks for the reply

    Trent

+ 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 cell ranges in multiple worksheets and prevent saving if cell value empty
    By Spritz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-22-2013, 11:24 AM
  2. VBA looping with matrix of data over multiple sheets
    By zzschmidt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2011, 01:21 PM
  3. Looping through multiple worksheets without duplicating data
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-21-2010, 06:37 PM
  4. Looping through dynamic ranges from multiple worksheets
    By TechWrangler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2006, 03:20 PM
  5. Looping Ranges
    By purple_m in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2005, 08:24 AM

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