It looks like you're new here. Sign in or register to get started.
XlRange.NumberFormat('0');
XlSheet.Range('F'+FORMAT(j)).NumberFormat('0');
ExcelApp.ActiveCell.EntireColumn.EntireRow.NumberFormat := '@';
ExcelApp.ErrorCheckingOptions.NumberAsText := FALSE; ExcelApp.ErrorCheckingOptions.TextDate := FALSE;
Comments
be smart before being a clever.
Right mouse click on the number (or column).
Choose: "Format cells..."
Tab: Number
Choose:
Category = Number and
Decimal places = 0
Click OK and you will see the number correctly.
format the cell by
I hope it helps .... O:)
Technical Consultant, MS Dynamics NAV
Technical Consultant, MS Dynamics NAV
(Sets the formatting of everything to: Text)
And to remove the Number as Text or Date as Text "warnings"...
After that you can export anything you want and not have to worry how it might be interpreted by Excel.