+ Reply to Thread
Results 1 to 5 of 5

Help Searching a database to find text that was input

  1. #1
    Registered User
    Join Date
    09-24-2010
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Help Searching a database to find text that was input

    Hello,
    I am new to the VBA/Macros world and I find it very interesting. I am trying to create a macros that simply calculates vapor pressure of a given amount of solvents. I have already created the database but now what I want to do is ask the user to input the "name or chemical formula" of the solvent and them my macros will look in the database, find the solvent, and with the information in the database and the input temperature, calculate the pressure. I do not know how to get it to search my entire database (2 columns) to match the input.

    Thanks for your help,
    Jeremiah

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Help Searching a database to find text that was input

    Perhaps you could attach a sample workbook?

  3. #3
    Registered User
    Join Date
    09-24-2010
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Help Searching a database to find text that was input

    Well I think I figured something out but now I am trying to sum the pressure variables outside of the loop.

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 09-26-2010 at 02:38 PM.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Help Searching a database to find text that was input

    It's a bit hard to work out what you're doing from some code.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help Searching a database to find text that was input

    Your find looks for the input, activates the cell then promptly looks for " ." which nullifies the first search.

    Without understanding what you are doing or seeing an example my suggestion would be that you don't need VBA, but a VLOOKUP formula & an equation
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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