+ Reply to Thread
Results 1 to 4 of 4

Working with for, next

  1. #1
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Florida
    MS-Off Ver
    Excel 365
    Posts
    289

    Working with for, next

    I have a sheet in my workbook (attached) with a bunch of VLOOKUPs based on the unit number in cell F1. The data comes from a sheet called Master.
    Master has a named range UNIT (A3-A86).
    What I am trying to do is a loop to populate F1 with the first value in range UNIT, print the sheet, then return and get the next value and repeat the process.
    I think a for-next loop is what I need but i"m not sure.
    Thanks in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Working with for, next

    Try

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Florida
    MS-Off Ver
    Excel 365
    Posts
    289

    Re: Working with for, next

    You make it so simple. Thanks so much.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Working with for, next

    You're welcome. Thanks for the rep.


    Now it's easy, once it wasn't

+ 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] If statement on working out percentage and based on time and date not working.
    By Johnny247 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-11-2019, 06:07 PM
  2. Replies: 1
    Last Post: 08-30-2017, 02:32 AM
  3. Replies: 1
    Last Post: 02-27-2016, 06:28 PM
  4. Replies: 3
    Last Post: 05-14-2015, 07:32 AM
  5. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  6. Replies: 4
    Last Post: 09-03-2013, 02:52 AM
  7. Replies: 2
    Last Post: 08-17-2012, 08:16 AM

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