Hi all,
Thanks for your help in advance...
I need to create a macro that takes the below information in Excel and converts it to a XML Data (.xml) file and saves it to the desktop with a push of a button. 3 columns (id, questRes1, questRes2) will be filled out for each question. I entered 3 rows as an example, but the user may fill in 100+ rows.
The final result would need to look like the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<surveydata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<questions>
<question id="cp23">
<questRes1>I prefer to work in a relaxed environment</questRes1>
<questRes2>I enjoy working under pressure</questRes2>
</question>
<question id="ac12">
<questRes1>I'd rather move on than spend time double-checking work</questRes1>
<questRes2>I am precise in my work</questRes2>
</question>
<question id="comp12">
<questRes1>I find competitive situations demotivating</questRes1>
<questRes2>I like to compete and do everything I can to win</questRes2>
</question>
</questions>
</surveydata>
Thanks!
Sheri
Thanks for your help in advance...
I need to create a macro that takes the below information in Excel and converts it to a XML Data (.xml) file and saves it to the desktop with a push of a button. 3 columns (id, questRes1, questRes2) will be filled out for each question. I entered 3 rows as an example, but the user may fill in 100+ rows.
id | questRes1 | questRes2 |
cp23 | I prefer to work in a relaxed environment | I enjoy working under pressure |
ac12 | I'd rather move on than spend time double-checking work | I am precise in my work |
comp12 | I find competitive situations demotivating | I like to compete and do everything I can to win |
The final result would need to look like the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<surveydata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<questions>
<question id="cp23">
<questRes1>I prefer to work in a relaxed environment</questRes1>
<questRes2>I enjoy working under pressure</questRes2>
</question>
<question id="ac12">
<questRes1>I'd rather move on than spend time double-checking work</questRes1>
<questRes2>I am precise in my work</questRes2>
</question>
<question id="comp12">
<questRes1>I find competitive situations demotivating</questRes1>
<questRes2>I like to compete and do everything I can to win</questRes2>
</question>
</questions>
</surveydata>
Thanks!
Sheri