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

Announcements

No record found.

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
    304,708 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,095 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April 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... 593 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 543

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans