ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel to XML: Need some help fine tuning a macro (https://www.excelbanter.com/excel-programming/438672-excel-xml-need-some-help-fine-tuning-macro.html)

Gary[_24_]

Excel to XML: Need some help fine tuning a macro
 
Hey all,
I've downloaded a Macro http://meadinkent.co.uk/ and have been editing
it get the exported XML to appear as required, however I can't seem to
get the 2 of my fields to display correctly.

There are two fields which have numbers in but are formatted as text
because I do not want them rounded up.

One cell has -0.08162498 in it and in the exported XML doesn't even
appear.
Another cell has 51.51891794 in it and in the exported XML appears as
52.

My question is how can I get the information to appear as I've typed
it in rather then rounding it?

I have changed the 'Function FormChk(RowNum As Integer, ColNum As
Integer)' to have more # in the length of the value but it doesn't
work, I believe this could be because the cells are not formatted as a
number.

Macro code: http://meadinkent.co.uk/myxml/XL_to_XML.txt

Gary


All times are GMT +1. The time now is 08:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com