I have a VBA code using QueryTables, that have a URL as String--> exm: "http://homefold/exp/myFile.php" also have variable "hDate" as string having a date value. I need to add that variable at the end of the URL, seams that the task should be easy however I haven't found the solution. The result on sheet is something like : <b>Fatal error</b>: Function must be a string....... This is what I've tried so far : mURL="http://homefold/exp/myFile.php?hDate="& ws.Range("A1") I had switched the ampersand and the quotation in different positions but no success. Can't see what is wrong yet, need a solid on this one.