Skip to main content

Set up Dynamic Data Exchange

Generate a formula that pulls a value from alameen into Excel or into a macro, instead of typing balances by hand.

Before you begin​

  • Open the company file. The Dynamic Data Exchange button appears if the licence includes accounting, and it is available in every subscription plan.
  • You need the permission Dynamic Data Exchange in Users Management. Without it the button stays visible and nothing happens when you click it.
  • The formula works while alameen is running with the file open, so leave alameen open when you use it.
  • Know the function you want: the table of functions shows all the functions and what each returns.

Steps​

  1. Click the File tab, then Tools, then Dynamic Data Exchange.
  2. In Category choose the kind of function, and in Functions choose the function. Example: for an account balance between two dates choose the function "Account balance between two dates".
  3. The fields the function needs appear. Choose the Account (or the material, customer or group, depending on the function), and enter From and To. If Contra Account, Cost Center, Currency, Warehouse or Form appears, fill it too.
  4. In Type choose the program you will paste into: Excel for a cell, or VBA for a macro.
  5. The formula is generated automatically in Format. Change any field to update it. If the word Error appears, read the line after it and fill the missing field (see the table below).
  6. Click Copy.
  7. In Excel paste the formula in a cell. In VBA paste the code in a macro module and run it.
  8. Check that the value that appears matches what is in alameen, by comparing it with the report of the same account or material.

Example: for an account named Cash, the program generates for a function named AcnGetCode the formula =Ameen|AcnGetCode!'AccName="Cash"'. The balance formulas also write the two dates of the period, and the unposted entries setting if you ticked Show Unposted Entries.

Result​

  • The Format box holds the ready text, and after Copy the clipboard holds a copy of it.
  • This window changes nothing in the alameen data. The exchange is read only.
  • If operations logging is on, the program records what you generated when you close the window.

If something goes wrong​

MessageWhen it appearsWhat to do
Error (with "Please specify" and a field name under it)A field the function needs is empty.Fill the field named.
Beginning date is bigger than ending dateFrom is after To.Correct the two dates.
غير متوفر حالياًYou chose the C# type.Choose Excel or VBA.

This page applies to alameen ERP 10, version 10.1.79.764.