web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

need to pass currency symbol with amount in excel export in ax 2012 r3

(0) ShareShare
ReportReport
Posted on by 56

Hi All,

Can you please let me know, how i have to display amount with currency symbol in EXCEL.

5633.a8.jpg

my code

excelWorksheet.cells().item(k,18).value(salesUnitPrice);

is this possible here to pass currency symbol?

please give me more shd on this.

thanks!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    306,446 Super User 2026 Season 1 on at

    Hi @rp@n,

    Displaying the currency symbol in the same cell as the amount is related to the cell format; not the value. It should be possible to manage the format using the Excel API. You can try to find some information how to change cell format using the Excel API, you can record a macro in Excel and see what methods are being called or ask your question on the Excel community: techcommunity.microsoft.com/.../Excel_Cat

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,097 on at

    Hi @pr@n,

    You need to use NumberFormat method on SysExcelRange class to apply the format you need. And to get range from row and column value you can use SysExcelWorksheetHelper.getWorksheetRange.

    To get an understanding of what should you do in x to achieve something in Excel, you can open empty Excel, start Macro recording and do needed changes on the sheet in Excel (like change format). When you stop macro recording you will get code you want to apply in x (of course it VB, but it can be easily converted to X ).

    Number format in your case could be

    "[$Â¥-ja-JP]#,##0.00"

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You can pass any values you want. But if you want to put currency symbol and amount in the same field, then you must combine these two into one string in x++, and then pass this string in your Excel cell.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 385 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 270

#3
Martin Dráb Profile Picture

Martin Dráb 243 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans