My Excel workbook contains VBA subs and macros similar to those below; they sit in Module1.
How to call them using Python win32com module?
Public Sub setA1(ByVal s As String)
ThisWorkbook.ActiveSheet.Range("A1").Value = s
End Sub
Public Function getA1() As String
getA1 = ThisWorkbook.ActiveSheet.Range("A1").Value
End Function
Many thanks in advance!