+ Reply to Thread
Results 1 to 7 of 7

loop through data list

  1. #1
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    loop through data list

    Morning fellows, I am in need of some guidance. I have a list of people that helps me see their "sales". I choose their name, I hit a macro and boom their monthly sales appears. What I need/want is to print that list. And lets say that I have 200 salesman how can I do It in one macro. Select name > run macro >select list > print(or save as pdf with salesman's name) >select next name etc etc. Any help is very appreciated. Thanks

  2. #2
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: loop through data list

    My solution was to copy each name on top of my existing data list but I want to know if there is an alternative solution.

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: loop through data list

    Post your worksheet up
    Happy with my advice? Click on the * reputation button below

  4. #4
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: loop through data list

    ex.xlsx

    So select each entry from dropdown list and save selection as pdf.

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: loop through data list

    Try this. It will put the files inteh C:\Temp\ directory

    Please Login or Register  to view this content.
    Last edited by Crooza; 09-23-2014 at 02:58 AM.

  6. #6
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: loop through data list

    Thank you, with that i figured out how to do it. I will mark this as solved and give rep, just as a side question, if instead of saving as pdf i wanted to print each what needs to be replaced?
    Thanks again have a great day.

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: loop through data list

    Glad it worked. If I was printing to a printer rather than PDF I'd probably just go to macro recorder, print one page off then copy that code to replace the code starting "Activesheet.....". That way I'd get all the printer references and page setup captured. You won't need the full name reference either if you print to printer but it won't hurt to leave it in.

+ 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] Loop thru a customer list and go to their shhet and insert data
    By a86jag in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2014, 09:39 PM
  2. Macro to loop through drop down list and copy data to new sheet
    By mhenneman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2014, 04:11 PM
  3. [SOLVED] Loop Data validation list item and generate PDF for each
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 01:29 AM
  4. Loop through list of data and calculate values
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2010, 12:08 PM
  5. Loop + Data validation list + e-mail problem
    By VBA Noob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2006, 04:37 PM

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