Mary,
There are two issues here:
First, there are blank spaces before and after the word TEXT. These must be removed. See the line of code below.
With Application.ActiveSheet.QueryTables.Add(Connection :="TEXT;" & UserPath & "" _
, Destination:=Worksheets("Data").Range("A2"))
Second, the worksheet where you create the QueryTable must be the same as the one you use for your destination, otherwise you will get another error.
I hope this helps.
Courtesy of Jack
http://www.Excel-Expert.co.uk