Results 1 to 2 of 2

How to Loop And Email Based on List On Main Page?

Threaded View

  1. #1
    Registered User
    Join Date
    02-08-2023
    Location
    Buffalo, New York
    MS-Off Ver
    Office 365
    Posts
    1

    How to Loop And Email Based on List On Main Page?

    Like the title says, I'm trying to find out how to loop through a list of codes that I have on the main page of my excel spreadsheet that will then run through a SQL script and email out an attached spreadsheet to each specific email assigned to their specific code on the main page.

    Attached I have a very small sample workbook to show you what the main page looks like and what the report will generate. I omitted 24 other pages because of redundancy. Basically I have vba scripting that when someone enters a code (like DM) into the requested star zone and hit Run Report, it loops through and grabs the Top 25 parts associated with that code and creates a worksheet for each one. All of the programming is done. My problem is that I'm trying to automate this for each code in that list and I don't know how.

    So essentially I want it where I can blank out the requested star section and when i hit run report itll start with DM, go through DMs top 25 and then send an email out. Then it'll go to JE, do the same thing, mail it out. And then it'd go to JEB, JMT etc.

    Can someone guide me in the right direction? I can attach all my code that generates the entirety of the report if that's helpful to show how i've arrived at where I'm currently at.

    Thanks
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Make a sub-list from a main list based on wildcards
    By dflak in forum Tips and Tutorials
    Replies: 1
    Last Post: 07-17-2020, 12:07 PM
  2. match numbers from column on main page to a differnt page
    By pelbert in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-24-2019, 09:41 PM
  3. Replies: 0
    Last Post: 10-03-2017, 08:22 AM
  4. how to use vba to loop through web page to get a dynamic list of number
    By n07cn3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2016, 09:36 PM
  5. Add to existing macro, to bring in 3 other components to buyers page from main page.
    By detrw4always in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2016, 03:06 PM
  6. Macro to create formula for Main Page from data on other page
    By Drew Davis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2011, 06:35 AM
  7. [SOLVED] LOOP - Adddress List -to email
    By Paul. in forum Excel General
    Replies: 0
    Last Post: 04-13-2005, 05:06 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