Hello-
I might be missing something, but this script will update a cell in an Open excel sheet with new data. I think the difference is GetObject vs CreateObject Code:
Option Explicit |
Quote:
|
Quote:
I even did multiple updates to random cells and watched each one populate in. Code:
UpdateWorkbookCell xlApp1, wb_name, sheet_name, 9, 7, new_data fwiw, I'm running scrt 9.0.2 and excel standard 2016 on win10 x64 |
Ok thank you.
When I get some time, I'll try your method and see what I get. Would be really nice if this works the way I need it to. |
If you're more keen to use Python3 in scrt (I would be), looks like pywin32 can handle the COM objects to do the same kind of thing.
My quick test: Code:
# $language = "Python3" pip install pywin32 (https://pypi.org/project/pywin32/) You'll also likely have to open a new sCRT instance for it to pick up the new library. |
All times are GMT -6. The time now is 01:08 AM. |