Search the Legacy Support Archive (up to v2020)
  1. Read-only archive (2005–2024). Posting is closed. Need help with MediaLab or DirectRT 2027? Email service@empirisoft.com.

    All words · “exact phrase” · -leave out

    Advanced search

Calling Visual Basic (Excel)

  1. #1

    Calling Visual Basic (Excel)

    Hi,

    I know that MediaLab supports some executable file, like visual basic. In my experiment I need subjects to run a macro as part of a sequence of tasks, where I need to collect two variables.
    Is it possible to call excel to run visual basic, collect the 2 variables in the data file, and then go back to the MediaLab experiment?
    I've been trying to use the "custom" item type, but it keeps sending me errors.

    Thank you very much

  2. #2
    jarvis24 Blair Jarvis, Administrator
    It gets complicated doing it this way. Can you collect your two variables using a simple HTML form, e.g., the way questions are asked on web pages? If so, then MediaLab can easily integrate those data using the custom item approach.

  3. #3
    By now, I'm collecting the data in a .txt file, but I'm still having trouble calling the Excel file from Medialab. How can I do this?