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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

X++ code for merging excel cells

(0) ShareShare
ReportReport
Posted on by

Hi all,

Any one kindly explain the steps for developing the merging excel cells functionality in Microsoft Dynamics AX 2012.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    5400 Profile Picture
    7,162 on at

    Please check for same.

    community.dynamics.com/.../106232

  • Verified answer
    Bashir Ahmad Profile Picture
    5,248 on at

    sysExcelRange.comObject().MergeCells(1);

  • Dileep kumar.B Profile Picture
    on at

    Thank you for your responce.

    SysExcelRange   = SysExcelWorkSheet.cells().range(range);         sysExcelRange.comObject().MergeCells(1);           SysExcelRange.horizontalAlignment(#xlCenter);

    its working fine.

  • Community Member Profile Picture
    on at

     SysExcelRange.comObject().mergeCells(1); 

    Hi Expert's,

    I'm facing Warning msg "The variable is not of the type CLASS."  when I use above code. can any one help me how to overcome warning message.

    Thanks in advance !!!

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    If You don't want this warning, You must change range from SysExcelRange on COM .

    Example :

    COM range;

    range = SysExcelWorkSheet.cells().range("A1:C1").comObject();

    range.MergeCells(1);

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans