Advertisement
Advertisement
| 03.05.2008 at 09:38AM PST, ID: 23216807 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: |
Dim ERsheet As Worksheet
Set ERsheet = ActiveWorkbook.Worksheets("DATA")
Dim XMLFileText as String
XMLFileText = ""
XMLFileText = XMLFileText & "<?xml version=""1.0"" encoding=""ISO8859-1"" ?>" & vbNewLine
XMLFileText = XMLFileText & "<!DOCTYPE EXAM SYSTEM ""enhexam.dtd"">" & vbNewLine
XMLFileText = XMLFileText & tabs(0) & UCase("<EXAM>") & vbNewLine
....
XMLFileText = XMLFileText & tabs(3) & UCase("<question><![CDATA[") & Trim(.Range(newcolname(2)).Value) & UCase("]]></question>") & vbNewLine
XMLFileText = XMLFileText & tabs(3) & UCase("<response1><![CDATA[") & Trim(.Range(newcolname(3)).Value) & UCase("]]></response1>") & vbNewLine
XMLFileText = XMLFileText & tabs(3) & UCase("<message1><![CDATA[") & Trim(.Range(newcolname(4)).Value) & UCase("]]></message1>") & vbNewLine
XMLFileText = XMLFileText & tabs(3) & UCase("<response2><![CDATA[") & Trim(.Range(newcolname(5)).Value) & UCase("]]></response2>") & vbNewLine
XMLFileText = XMLFileText & tabs(3) & UCase("<message2><![CDATA[") & Trim(.Range(newcolname(6)).Value) & UCase("]]></message2>") & vbNewLine
XMLFileText = XMLFileText & tabs(3) & UCase("<response3><![CDATA[") & Trim(.Range(newcolname(7)).Value) & UCase("]]></response3>") & vbNewLine
XMLFileText = XMLFileText & tabs(3) & UCase("<message3><![CDATA[") & Trim(.Range(newcolname(8)).Value) & UCase("]]></message3>") & vbNewLine
If createfileflag = True Then
Dim FSO As Object
Dim newFile As Object
Set FSO = CreateObject("Scripting.FileSystemObject")
Set newFile = FSO.CreateTextFile(filepath)
newFile.Write (XMLFileText)
newFile.Close
Set newFile = Nothing
Set FSO = Nothing
End If
|