Ive got a sheet where I have gone to the DATA table and linked in a remote xml file to bring the data into excel.. that works fine... and is displaying....
To change that data source i have to goto DATA and Connections and Modify it which is abit of a pain... so im wanting to be able to do it via VBA.... the problem is i have tried recording a macro to get the code but its not coming up with anything.
Im able to do it via xml mapping... but i want to be able to do it without the mapping *i could be dumb on this point but i dont use mapping.. i just pull in the xml into the s/s and then pivot the table of data
I have looked and stumbled over.... ActiveWorkbook.Connections("CONNECTION_NAME") but im not sure what if any code can be used in conjunction with that to change the connection .....
Any advice thoughts would be awesome.
Cheers
To change that data source i have to goto DATA and Connections and Modify it which is abit of a pain... so im wanting to be able to do it via VBA.... the problem is i have tried recording a macro to get the code but its not coming up with anything.
Im able to do it via xml mapping... but i want to be able to do it without the mapping *i could be dumb on this point but i dont use mapping.. i just pull in the xml into the s/s and then pivot the table of data
I have looked and stumbled over.... ActiveWorkbook.Connections("CONNECTION_NAME") but im not sure what if any code can be used in conjunction with that to change the connection .....
Any advice thoughts would be awesome.
Cheers