the code you posted implies the existance of a function named ImportSQLtoRange() which accepts 3 parameters and returns a result that can be a 1

The code you have posted doesn't really do anything other than set some values for use in this function so ....