Thanks a lot for the reply's mintjulep and gavin.
Both of ur codes work. it does save mith the variable i have given .
but gavin in the above message u gave me that:
Basically in your existing code you can replace text such as With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\..\u_S_07Oct2008.csv" _
, Destination:=Range("A1"))
.Name = "u_S_07Oct2008"
with variables containing the text string.
So i just need to change it from
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\..\u_S_07Oct2008.csv" _
, Destination:=Range("A1"))
.Name = "u_S_07Oct2008"
to what
thanks a lot both of u
i really appreciate for ur time....