only sub functions . u can use in excel sheet directly.
properly comment. 100% accuracy guaranteed.
You can read the below, or go directly reading the attached files.
XML to text, Replace text (for translation purposes) and separate text Excel VBA sub functions
We want to have two (almost identical) sub functions in excel
function trans_main (inputcell)
endfunction
function trans_table (inputcell)
endfunction
A. function trans_main (inputcell)
inputcell contains data. The data can be found in column N of the attached.
Cell Data are in xml form
Cell data contain three parts (sometimes all three, sometimes only two, etc):
- text (descriptions, etc)
- a table (with size/colour combinations
- url links who point to photos
The function:
• Converts the inputcell string to text (from xml)
• Removes all links to photos (there are links to photos that we want to discard)
• Loops through the ‘=Terms!A4:B30’ data that we provide. For each string found in first column, it replaces with the greek text in the second column
• What is now the new string (the translated string), should be converted back to xml format
• From what is left, we keep only the text
B. function trans_table (inputcell)
inputcell contains data. The data can be found in column N of the attached.
Cell Data are in xml form
Cell data contain three parts (sometimes all three, sometimes only two, etc):
- text (descriptions, etc)
- a table (with size/colour combinations
- url links who point to photos
The function:
• C