I wrote the following code:
Function find_results_idle() Public iRaw As Integer Public iColumn As Integer iRaw = 1 iColumn = 1
To use global variables, Insert New Module from VBA Project UI and declare variables using Global
Global
Global iRaw As Integer Global iColumn As Integer