Consulting

Results 1 to 3 of 3

Thread: Advice: LookUp as macro

  1. #1
    VBAX Regular
    Joined
    Jul 2004
    Location
    Bradford, England
    Posts
    17
    Location

    Red face Advice: LookUp as macro

    Hiya

    Back again, with this lovely report

    I have one question to ask, and if its a no go, then I'll look at other things to help for the project.

    Can you create a macro that uses the Vlookup function? Obviously, I'll have to explain about creating a new column, and if it can be done, just tell them to run the macro, say SL1

    If it can be done, I'll get as much information as possible, like before. However, if it can be done, I'll have to re-create the report from scratch and save it at that point.

    Thanks in advance

    eddie
    Just go with the flow, like a twig on the shoulders of a mighty stream


    http://forums.techguy.org

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hi eddie,

    Yeah, it can be done. The same task can actually be accomplished a few ways in VBA. You always have the option of using the actal function called from within the code 'WorksheetFunction.Vlookup(...'. What I don't understand is are you asking for the function to call a macro, or do you want to design an entirely new macro here?

  3. #3
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Yeah, a macro can use VLookup like firefytr says, or a macro could put the formula into a cell. It all depends on what you want to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •