If you set up data set as Service in Dynamics Ax 2012, You can easily import and export data into AX using Excel Add-in. It works for all AIF built in services. By default if you table option in Excel add-ins then that is also used AIF metadata service under the hood to import export. For current post I am using my exists custom document Service in Excel Add-ins. The more complex custom services can be written.
This custom service is in detail you can follow following article.
http://tech.alirazazaidi.com/creating-and-consuming-custom-document-service-in-dynamics-ax-2012-r3/
Setting up datasource in Ax for Excel Add ins
Now click open the Excel and create a new worksheet. You find Dynamics Ax tabstrip and open it.
Click and open the connection to Dynamics Ax 2012
Now click on add data at tab strip and click add data
Select the source
Now drag and expend it to required number columns.
Second way to select the header and click on add row button to add new rows.
Enter data and click on push button.
Now open Dynamics Ax and open table explorer to view data in push by Excel add ins.