+ Reply to Thread
Results 1 to 2 of 2

Using "For Each" loop VBA in Ms Excel

  1. #1
    Registered User
    Join Date
    09-01-2020
    Location
    Owerri, Nigeria
    MS-Off Ver
    2010
    Posts
    4

    Using "For Each" loop VBA in Ms Excel

    For each name in the workbook,I wish to add 1/the value in the B cell of worksheet1 and 1/the value in the C cell of worksheet2 *100 and display the result if less than 100. This same process is repeated for worksheet1 and worksheet3 and on until worksheet10. The iteration now starts from worksheet2 and worksheet3 and so on until worksheet2 and worksheet10. Iteration continues beginning from worksheet3 and 1/the value in C cell of worksheet4...until worksheet3 and 1/C cell value of worksheet10. The last iteration for the first name in the column would be the use of 1/the value in the B cell of sheet9 and 1/the value in C cell of sheet10. This will happen before the loop goes to the second name and executes the above iteration process all over again until the last Name (Stacy) is looped through with the corresponding iteration through the cells as above and finally displays all values less than 100 through the message box or in some cells of the workbook.
    Attached Images Attached Images
    Last edited by umgbemena; 09-01-2020 at 04:23 PM.

  2. #2
    Forum Contributor Dante Amor's Avatar
    Join Date
    07-24-2020
    Location
    MEXICO
    MS-Off Ver
    Excel 2013
    Posts
    212

    Re: Using "For Each" loop VBA in Ms Excel

    Duplicate post. Please read rules:
    https://www.excelforum.com/forum-rul...rum-rules.html

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. [SOLVED] Copy cells from range "C3" to "F3" with loop and blank field
    By masterm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2015, 01:03 PM
  5. [SOLVED] Excel 2007: How to Convert "5/2/2013" to "May" then subtract a Month so it's "Apr"
    By Golom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 02:00 AM
  6. Replies: 1
    Last Post: 09-21-2013, 03:18 AM
  7. [SOLVED] Loop to check for "yes" then copy the IDs with "yes" and paste to other workbook
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2012, 12:41 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