I have 2 function in Excel, one to retrieve data from a database and one to export to the database.

These functions work fine, but are always execute when you enter the formula. F9 doesn't refresh the retrieve function.

Is there a way to have these functions (not doing anything) and execute them only when I press a command button?