Hi all,
I'm trying to use this argument (arg):
like this:
BTW, arg is created like this:
(it was found online. I'm sure many of you have seen that exact line before )
It errors out. I think it's because of the space in the path "SUPERVISOR REPORTS" and possibly also the space in the file name "May 2018.xlsx". Am I correct about that? And how would I modify the variable creation line to account for possible spaces in path and filename?
Thanks in advance for any help I can get.
I'm trying to use this argument (arg):
PHP:
'T:\SUPERVISOR REPORTS\2018\[May 2018.xlsx]10-D!R7C2
like this:
Code:
GetValue = ExecuteExcel4Macro(arg)
BTW, arg is created like this:
Code:
arg = "'" & path & "[" & file & "]" & sheet & "!" & Range(ref).Range("A1").Address(, , xlR1C1)
(it was found online. I'm sure many of you have seen that exact line before )
It errors out. I think it's because of the space in the path "SUPERVISOR REPORTS" and possibly also the space in the file name "May 2018.xlsx". Am I correct about that? And how would I modify the variable creation line to account for possible spaces in path and filename?
Thanks in advance for any help I can get.
Last edited: