Josh Hermans
New Member
- Joined
- Nov 24, 2017
- Messages
- 2
Hi,
I'm trying to get my %homePath% in a vlookup. I created a vba function
function Homepath()
homepath = "c:"&environ("HOMEPATH"&""
end function
when I enter =VLOOKUP(A5;HomePath()&’[Clients.xlsm]Clients'!$A$1:$G$65536;3;FALSE) I always get #Value aqs result.
When I evaluate this vlookup becomes VLOOKUP(A5;"C:\users\Jos"’[Clients.xlsm]Clients'!$A$1:$G$65536;3;FALSE)
I can't get rid of the double qoutes.
I'm trying to get my %homePath% in a vlookup. I created a vba function
function Homepath()
homepath = "c:"&environ("HOMEPATH"&""
end function
when I enter =VLOOKUP(A5;HomePath()&’[Clients.xlsm]Clients'!$A$1:$G$65536;3;FALSE) I always get #Value aqs result.
When I evaluate this vlookup becomes VLOOKUP(A5;"C:\users\Jos"’[Clients.xlsm]Clients'!$A$1:$G$65536;3;FALSE)
I can't get rid of the double qoutes.