+ Reply to Thread
Results 1 to 2 of 2

User Forms and Excel Functions

  1. #1
    Registered User
    Join Date
    07-14-2005
    Posts
    1

    User Forms and Excel Functions

    I built a spreadsheet using the VLOOKUP function. I enter the search string into the chosen cell and then a table is searched and the matching string is returned. This is all done directly from the worksheet.

    How can I do the same thing from a field on a user form? How do I reference a function like VLOOKUP?

    I've been around programming for a while but just recently discovered VBA for Excel.

  2. #2
    STEVE BELL
    Guest

    Re: User Forms and Excel Functions

    In your code just set a variable to
    x = WorksheetFunction.Vlookup(VALUE,Range("E35:L47"),2,TRUE)
    but qualify where the ranges and values are coming from.

    --
    steveB

    Remove "AYN" from email to respond
    "sottsee" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I built a spreadsheet using the VLOOKUP function. I enter the search
    > string into the chosen cell and then a table is searched and the
    > matching string is returned. This is all done directly from the
    > worksheet.
    >
    > How can I do the same thing from a field on a user form? How do I
    > reference a function like VLOOKUP?
    >
    > I've been around programming for a while but just recently discovered
    > VBA for Excel.
    >
    >
    > --
    > sottsee
    > ------------------------------------------------------------------------
    > sottsee's Profile:
    > http://www.excelforum.com/member.php...o&userid=25243
    > View this thread: http://www.excelforum.com/showthread...hreadid=387345
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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