Hi Sgathingu,
Thank you for your support!!
I am sorry for the late reply, hope I can still help.
Regarding this first method, Show in Tabular form, you may write in this way:
pvtTable.RowAxisLayout(win32c.xlTabularRow)
-----------------------
The VBA script as you write is .RowAxisLayout xlTabularRow
Note that for VBA syntax, the parameter will be separate by space, so in this VBA line, RowAxisLayout is the method, xlTabularRow is the parameter.
To write in Python, you just convert it into Python way, like normal Object-Oriented Programming, object.method(parameter).
Hence, the syntax in Python is pvtTable.RowAxisLayout(win32c.xlTabularRow)
------------------------
Then, for the second method, repeat all labels you may write in this way:
pvtTable.RepeatAllLabels(win32c.xlRepeatLabels). The logic is the same with the first one as well.
You may refer to this article for more information https://towardsdatascience.com/automate-excel-with-python-7c0e8c7c6256😁