

Schedule a call using schedule_call and have that call update the

Worksheet cell values from a worksheet function, but it is possible to You can remove these restrictions by calling the PyXLL schedule_callįunction to schedule a Python function to be called in a way that lets you You can call into Excel using the Excel Object Model from macros and menuįunctions, and use a sub-set of the Excel functionality from worksheetįunctions, where more care must be taken because the functions are called # Note the parentheses which are not required in VBA but are in Python. Range ( 'B11:K11' ) # Call the 'Select' method on the Range. ActiveSheet # Call the 'Range' method on the Sheet xl_range = sheet. From pyxll import xl_macro, xl_app def macro1 (): xl = xl_app () # 'xl' is an instance of the Excel.Application object # Get the current ActiveSheet (same as in VBA) sheet = xl.
