Is there a way to determine which Excel version I’m using via code, basically I need to figure out whether I’m on Office 365 or an older version.
import win32com.client
import xlwings as xw
xl = win32com.client.gencache.EnsureDispatch(“Excel.Application”)
wb = xl.Workbooks.Add()
wb_xw = xw.books[wb.name]