+ Reply to Thread
Results 1 to 2 of 2

Noob Question re Looping through workbook and VLOOKUPs

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Noob Question re Looping through workbook and VLOOKUPs

    Hi,

    Typical new VBA user here - can do almost anything with formulas, can't do much in VBA if the Recorder won't do it.

    I'm after some advice on the attached workbook. It is to track employee productivity. The employees are each given a log on such as ABC123.

    What I'm trying to do is write some code that will search each of the sheets titled "ABC123" and "DEF456" (the employees productivity) and in column D return the number of Processed Work from the sheets called NCL and NNCL. The NCL and NNCL sheets will be updated each day. As you can see I'm using VLOOKUP to do it which I suspect is an inefficient way of coding this. My idea was that I would use VLOOKUP to search for their log on (cell A5 of the employee sheets) and then paste the formulas as values so when the NCL and NNCL sheets are updated the next day it won't mess up their data.

    Can anyone point me in the right direction please?

    I've found some code online which loops through the book (the real one has 70 or so sheets), but whenever I try to select the next blank cell in column D or F I get errors. You can see the remnants of mhy attempts in the attached file.

    Any help would be appreciated.

    Cheers.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Noob Question re Looping through workbook and VLOOKUPs

    This can be done through an easy code. But how would the macro know for which date the data is to be populated?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Noob Fn question
    By boston_sabre in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-15-2007, 11:23 PM
  2. Please don't hurt me, I'm a looping noob!
    By jw191 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2007, 05:10 AM
  3. Noob question
    By letmeplay1977 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2005, 05:05 PM
  4. Noob question
    By Micro_pal in forum Excel General
    Replies: 5
    Last Post: 09-02-2005, 09:05 PM
  5. Noob question
    By Micro_pal in forum Excel General
    Replies: 4
    Last Post: 09-02-2005, 08:05 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