Refresh.py
Refresh.py
client
import pythoncom
import gc
import time
from constants import ListFilePath
def refresh_excel():
"""Refreshes the Excel file and updates calculations."""
excel_path = ListFilePath
try:
pythoncom.CoInitialize() # Initialize COM threading
except Exception as e:
print(f"Error refreshing Excel range: {e}")