+ Reply to Thread
Results 1 to 4 of 4

how to approach this?

  1. #1
    Registered User
    Join Date
    10-11-2006
    Posts
    8

    how to approach this?

    can anyone tell me how this should be done. i have an excel UDF(user defined function) used as a formula on some cells, inside this function depending on the values it is passed i need to access database and get updated values. I m fairly new to excel vba but have good programming experience. I would like to know before attempting if its even possible inside a function when its being used as a formula. Previously i wasted my time getting a value from another workbook inside of a function only to find out it wasnt possible inside a function when its used in a formula.

    any help in this matter will be appreciated.

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    What database are you trying to read?

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by iori
    can anyone tell me how this should be done. i have an excel UDF(user defined function) used as a formula on some cells, inside this function depending on the values it is passed i need to access database and get updated values. I m fairly new to excel vba but have good programming experience. I would like to know before attempting if its even possible inside a function when its being used as a formula. Previously i wasted my time getting a value from another workbook inside of a function only to find out it wasnt possible inside a function when its used in a formula.

    any help in this matter will be appreciated.
    A value from another workbook is possible inside a udf, an extract from one of my udf is
    Please Login or Register  to view this content.
    where Concat is the Function name, and the value from A1 in the stated workbook is appended to myStr for a full display.

    Hope this helps.
    ---
    Si fractum non sit, noli id reficere.

  4. #4
    Registered User
    Join Date
    10-11-2006
    Posts
    8
    I have to read Access DB Mike. Thanks Bryan, can a database be accessed inside a UDF as thats what i have to do now.

+ 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