Hotstepper9369
Technical User
Hello All,
I am trying to run a script that build some script dynamically. My problem is that I am writing values to variables and when the If statement is built I am getting errors. An example would be as follows:
strIfStatement = This.Blank
If strIfStatement Then
MsgBox "Worked"
End If
I am getting a Type Mismatch Error, I am assuming because it brings back strIfStatement as "This.Blank" when what I really need is This.Blank.
Could somebody please advise as to how I can do the above without having my variable or whatever wrapped in quotes?
Thanks in Advance
H
I am trying to run a script that build some script dynamically. My problem is that I am writing values to variables and when the If statement is built I am getting errors. An example would be as follows:
strIfStatement = This.Blank
If strIfStatement Then
MsgBox "Worked"
End If
I am getting a Type Mismatch Error, I am assuming because it brings back strIfStatement as "This.Blank" when what I really need is This.Blank.
Could somebody please advise as to how I can do the above without having my variable or whatever wrapped in quotes?
Thanks in Advance
H