Hello!
I was wondering if anyone might be able to offer me some advice regarding a problem that I am getting when compiling some VB script in MS Excel.
I have ensured that he has been defined properlyetc. However when I run the below bit of VB , I get a "Compile Error: Expected Array"
gk_strConnectionString = GetINIFileParameter("connectionstring")
If Left(gk_strConnectionString, 5) = "ERROR" Then
GoTo ErrHandler
End If
I have found that on one colleagues machine it runs fine... however when I try and run it on mine it errors. I have checked that I am running with the same version of Excel, and that we have the same references ticked within VBAProject. Can anyone offer me any advice regarding this problem.
Many thanks,
Sarah
I was wondering if anyone might be able to offer me some advice regarding a problem that I am getting when compiling some VB script in MS Excel.
I have ensured that he has been defined properlyetc. However when I run the below bit of VB , I get a "Compile Error: Expected Array"
gk_strConnectionString = GetINIFileParameter("connectionstring")
If Left(gk_strConnectionString, 5) = "ERROR" Then
GoTo ErrHandler
End If
I have found that on one colleagues machine it runs fine... however when I try and run it on mine it errors. I have checked that I am running with the same version of Excel, and that we have the same references ticked within VBAProject. Can anyone offer me any advice regarding this problem.
Many thanks,
Sarah