I have a macro excel file, it's having 3 worksheets. I need to saveas or copy all worksheets to new excel sheet. How to do in python using xlwing module?
Asked
Active
Viewed 87 times
0
-
https://stackoverflow.com/a/62970113/13526701 this? – NoBlockhit Apr 27 '22 at 06:04
-
For macro file I am getting error, – Shambulinga H Apr 27 '22 at 06:50
-
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Excel', 'Workbook is protected and cannot be changed.', 'xlmain11.chm', 0, -2146827284), None) – Shambulinga H Apr 27 '22 at 06:50
-
Code please? Just edit your question, its going to be more readable. – NoBlockhit Apr 27 '22 at 06:52
1 Answers
0
Sorry, I cannot comment yet, so I will have to "answer". For pwintypes errors it is many times caused by Trust Center setting issues. Please see this link https://docs.xlwings.org/en/stable/addin.html . Also, like NoBlockhit asked, some code would help.

Eric M
- 131
- 1
- 6