+ Reply to Thread
Results 1 to 4 of 4

Vlookup with an InputBox

  1. #1
    Jeff
    Guest

    Vlookup with an InputBox

    Hi,
    Is it possible with VBA to enter the Table_Array of a Vlookup with an
    Inputbox?
    My problem is that the vlookup that I run needs a table_Array that could
    resides in several directories.

    --
    Regards,
    Jeff


  2. #2
    Dave Peterson
    Guest

    Re: Vlookup with an InputBox

    Maybe...

    But then you'd have to rely on the typing of the user.

    Maybe you could use application.getopenfilename to retrieve the filename, then
    open that workbook, then use application.inputbox to get the range out of that
    workbook.

    Another option if the address/worksheet names/workbook names/folder names don't
    change.

    Make a list with all the options, put it into a combobox. Let the user select
    from that list.

    Jeff wrote:
    >
    > Hi,
    > Is it possible with VBA to enter the Table_Array of a Vlookup with an
    > Inputbox?
    > My problem is that the vlookup that I run needs a table_Array that could
    > resides in several directories.
    >
    > --
    > Regards,
    > Jeff


    --

    Dave Peterson

  3. #3
    Jeff
    Guest

    Re: Vlookup with an InputBox

    Hi Dave,

    I need the application application.inputbox to get the file since the range
    will not change and will be set.
    --
    Regards,
    Jeff



    "Dave Peterson" wrote:

    > Maybe...
    >
    > But then you'd have to rely on the typing of the user.
    >
    > Maybe you could use application.getopenfilename to retrieve the filename, then
    > open that workbook, then use application.inputbox to get the range out of that
    > workbook.
    >
    > Another option if the address/worksheet names/workbook names/folder names don't
    > change.
    >
    > Make a list with all the options, put it into a combobox. Let the user select
    > from that list.
    >
    > Jeff wrote:
    > >
    > > Hi,
    > > Is it possible with VBA to enter the Table_Array of a Vlookup with an
    > > Inputbox?
    > > My problem is that the vlookup that I run needs a table_Array that could
    > > resides in several directories.
    > >
    > > --
    > > Regards,
    > > Jeff

    >
    > --
    >
    > Dave Peterson
    >


  4. #4
    Dave Peterson
    Guest

    Re: Vlookup with an InputBox

    What are you trying to retrieve from the user?

    If it's the file name, I'd use application.getopenfilename.

    If it's a range from an already open workbook, then application.inputbox makes
    sense.

    But since that range doesn't change, it sure sounds like you just want to get
    the filename that containst that range.

    Jeff wrote:
    >
    > Hi Dave,
    >
    > I need the application application.inputbox to get the file since the range
    > will not change and will be set.
    > --
    > Regards,
    > Jeff
    >
    > "Dave Peterson" wrote:
    >
    > > Maybe...
    > >
    > > But then you'd have to rely on the typing of the user.
    > >
    > > Maybe you could use application.getopenfilename to retrieve the filename, then
    > > open that workbook, then use application.inputbox to get the range out of that
    > > workbook.
    > >
    > > Another option if the address/worksheet names/workbook names/folder names don't
    > > change.
    > >
    > > Make a list with all the options, put it into a combobox. Let the user select
    > > from that list.
    > >
    > > Jeff wrote:
    > > >
    > > > Hi,
    > > > Is it possible with VBA to enter the Table_Array of a Vlookup with an
    > > > Inputbox?
    > > > My problem is that the vlookup that I run needs a table_Array that could
    > > > resides in several directories.
    > > >
    > > > --
    > > > Regards,
    > > > Jeff

    > >
    > > --
    > >
    > > Dave Peterson
    > >


    --

    Dave Peterson

+ 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