Export sheet range of data to XML file and import back.

StormFusion
StormFusion used Ask the Experts™
on
Hi,

Is it possible to export a range on my sheet say A1:Z100 of all its values etc to a XML file and then a feature to import this data back exactly as it was taken, so I export the data.  Delete all of the cells and when I import back they go exactly where they were?

It must not ask about overwriting the original data file etc.

Cheers
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Commented:
You can export in XML, do your edits but DO NOT Delete the CELLS just CLEAR the contents and then import back

The data should go back to its original place
Professor JMicrosoft Excel Expert
Top Expert 2014

Commented:
question is, why would you want to do that.  if you explain what is the aim and purpose of doing this. perhaps there is an easy solution to this.

Author

Commented:
Hi

I have a shared spreadsheet but the data is separate for each user.  So I have a sheet within that contains all the data I need to export that and reload for each user there data set.  But it needs to do this without user seeing any flashes or prompts etc
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Professor JMicrosoft Excel Expert
Top Expert 2014

Commented:
thanks xtermie  for taking the initiative to close the question; however, i do not believe we provided an satisfactory answer to the OPs question, so it wouldn't be fair to close this way.

so, either we provide a working solution, or we delete the question.

thanks for your understanding.
Microsoft Excel Expert
Top Expert 2014
Commented:
@ StormFusion

i do not see any better solution but to use the XML tool Add-in for Excel from available in Microsoft.

i have modified the Add-in so that it works as a normal file.

here are the steps.

before everything else,  if your Excel Developer Tab is not visible, then go to File Options Customize Ribbon and Tick Mark the "Developer"


download the attached file, when you open it, you will see under the Add-in tab a dropdown Menu

select your data then under the Add-in drop down select the first one "Convert a range to XML list"
once you do that then go to Developer Tab and there is button called Export, see screenshot.
2016-10-13-13_33_59-Microsoft-Excel-.pngthen it will prompt the location to save it , once you save it, then you can share that file to the users and then they can go to Developer tab and this time, they click on Import and it prompts them to select the file and once done, it will ask for location to paste the XML file in worksheet, once clicked ok.  the XML is imported back to worksheet.
XMLTOOL.xlsm
Professor JMicrosoft Excel Expert
Top Expert 2014

Commented:
.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial