I want to have the numbers I export to Excel using the Excel buffer table to be numbers
when I open Excel.
I currently get "The number in this cell is formatted as text or preceded by an apostrophe"
Then there is a process I can choose: 'Convert to Number'
I want it to convert to number automatically so my users or I don't have to mess with it manually.
How can I get my exported numbers to be numbers?
Thanks
Steve
0
Answers
How are using the Excel Buffer table?
Set the NumberFormat or set the last agrument on the AddColumn function as per formating a cell in Excel
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Thanks for your response
I am using on the OnPreSection of a report
EnterCell(RowNo,10,FORMAT("Outstanding Amount"),FALSE,FALSE,'@'); // for numbers
EnterCell(RowNo,3,"Vendor Item No.",FALSE,FALSE,''); // for text
This all works fine except:
This gives me the "The number in this cell is formatted as text or preceded by an apostrophe" message in Excel
Thanks
Steve
The @ sign tells Excel to format the cell as text - try a number format e.g. '0.00' for two decimal places. To see further examples - go to Excel and in Format Cells - look at the examples in the custom option.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
RIS Plus, LLC
Steve