Oct-15-2020, 04:15 AM
Hi,
This is a simplified example. But basically, I have function within a function. I want to pass the argument from the top-level function to the embedded function, but it doesn't work. How do I solve this?
Thank you
This is a simplified example. But basically, I have function within a function. I want to pass the argument from the top-level function to the embedded function, but it doesn't work. How do I solve this?
Thank you
def Check(file_name, mh_criticalval): test_file=file_name def eval_value(excel_sht, excel_col, mh_value): if excel_sht.cell(row=i, column=excel_col)>mh_value: cell_b=excel_sht.cell(row=i, column=excel_col).value='OK' eval_value(sht, 9, mh_criticalval) Check('test.xlsm',1)