Hi,
we all know that we can export data to excel via custom cells and formulas.
If these data are general data they can be output to ONE excel sheet, but if there are market data they have to be directed in the cell_querymarket_... area on every market sheet as it is described in the manual.
I wrote an Excel program (
see attached file MFPtoExcel2007.xlsx) that gives the possibility MFP to output many markets data in ONE excel sheet.
DescriptionImportFromMF() is a UDF (user defined excel function), via which MFP outputs market data to Excel via a custom cell and a custom formula.
Every (started) market from MyMarkets list will be displayed in Excel sheet1 on the same row as market_index in MyMarkets list. We can output as many data per market as we want, they will be displayed on adjacent cells on sheet1 starting from column 1.
We can even start first and sixth market in MyMarkets list, and they will be displayed at first and sixth row in sheet1.
They will be refreshed according to custom cells and formulas refreshing rules.
How to activateIn MFP settings>Excel options1. untick all buttons (if you want, it works also with ticked buttons).
2. In custom cell write:
Sheet1!K1 . Excel cell K1 will hold ImportFromMFP() function
3. in the custom formula on the right of the custom cell:
=ImportFromMFP(market_index, market_id, "market_name", s_1_sel_id, "s_1_sel_name", s_1_back_price, s_1_lay_price)ImportFromMFP() is a user defined function (UDF) in the excel file MFPtoExcel2007.xlsx that imports data from MFP. The function takes a variable number of parameters (you can output more/less data from every MFP market to one Excel sheet).
ImportFromMFP() takes at least 2 input parameters
- market_index is not optional and must be number
- any other argument
Notice that, passing textual info (market_name, sel_name) needs to be enclosed in double quotes ("")
In Excel4. Open Excel file MFPtoExcel2007.xlsx. Do not forget to enable macros in the excel file.
In MFP5. Launching Excel from MFP (via launch Excel button) on the betting interface
6. Connect it to the already opened MFPtoExcel2007.xlsx
7. Start one or more markets in MFP
E voila!!!
Remarks1. If we want to export more that 1 selections / market we have to export them as additional function parameters. They will be displayed on the same excel row.
Example:=ImportFromMFP(market_index, "s_1_sel_name", s_1_back_price, "s_2_sel_name", s_2_back_price)2. There must be at least one (started) market on MFP in order to refresh
3. If you want to change the cell (K1) where data are imported from excel do the following:
- in custom cells change Sheet1!K1 to new cell(i.e. Sheet1!BA1)
- In Excel, drag & drop cell K1 to new cell BA1, or
- use name manager in excel to change the address of named range "MFPcell"
3. Code inside excel file MFPtoExcel2007.xlsx is fully commented, you can change it to your needs.
You can download the excel file, test it and leave any comments on the forum
best Regards,
Theodore