Log in

View Full Version : [SLEEPER:] vba function to query oracle database



Westor
11-02-2017, 04:15 AM
Hi i am new to vba and i have this business requirement where a function (not macro) need to be created which makes connection with oracle database and query particular table where the query has where condition. It should be like if i enter the function in excel cell and the where condition(parameter) it should return the value.

for eg: =getdata(ID)-----> corresponding query is "select first_name from employees where id = &id(user input)"

Is it possible? Couldn't find much on web.

thanks

SamT
11-04-2017, 07:42 AM
Moderator bump.

yujin
01-07-2018, 05:43 PM
Yes, it's possible if OracleClient is installed.