简体   繁体   中英

Open the Excel VBA hidden sheet using Python

Currently trying to update few cells in the Excel VBA hidden sheet using Python but the python code not able to identify the Excel VBA hidden sheet.

Please see below the python code and error details:

  • Python code:

在此处输入图像描述

  • Error

在此处输入图像描述

Please help with the python code to update cells in VBA hidden sheet.

It might be the case that the Worksheet 'Admin' has the ''''xlSheetVeryHidden'''' (=2) state. Change it to ''''xlSheetHidden'''' like this ''''wb.Worksheets('Admin').Visible = 1''''. Then you can access it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM