Share via

VBA如何以读取压缩文件的形式,读取EXCEL文件中的工作表名称,不能用OPEN方法

仁江 朱 0 Reputation points
2023-09-21T03:07:26.09+00:00

VBA如何以读取压缩文件的形式,读取EXCEL文件中的工作表名称,不能用OPEN方法

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 24,991 Reputation points Moderator
    2023-09-21T07:27:34.5066667+00:00

    Hi @仁江 朱,

    As per my knowledge, if you want to get the worksheet name from a zip archive Excel file, you will need to extract the file first and then open it in Excel before running the code. I'm afraid we cannot directly get the name of the worksheet from a zip archive Excel file.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.