-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AddVBAProject limitations #1148
Comments
xuri
added a commit
to carbin-gun/excelize
that referenced
this issue
Oct 9, 2022
…to the workbook Added two exported functions `SetWorkbookPrOptions` and `GetWorkbookPrOptions` to support setting and getting the code name property of the workbook Re-order fields of the workbook properties group to improve the compatibility Go Modules dependencies upgrade Put workbook related operating in new `workbook.go` source code Library introduction docs block updated
jenbonzhang
pushed a commit
to jenbonzhang/excelize
that referenced
this issue
Oct 22, 2023
…to the workbook Added two exported functions `SetWorkbookPrOptions` and `GetWorkbookPrOptions` to support setting and getting the code name property of the workbook Re-order fields of the workbook properties group to improve the compatibility Go Modules dependencies upgrade Put workbook related operating in new `workbook.go` source code Library introduction docs block updated
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I'm trying to use AddVBAProject function but it has its limitations when vba code is in ThisWorkbook
I've created a file using MS Excel 2010
So I've extracted the
vbaProject.bin
from the above file and use it to add to a file generated with excelize, and it looks differentSteps to reproduce the issue:
ThisWorkbook
for exampleMsgBox "Hi..!!"
Describe the results you received:
Describe the results you expected:
Output of
go version
:go version go1.17.6 darwin/amd64
Excelize version or commit ID:
branch:
master
commit:
ad09698515b4f70496c950cca02ce612af8170e0
Environment details (OS, Microsoft Excel™ version, physical, etc.):
macos Big Sur 11.4
Investigation
I've compared files between:
Results: excelize generated all the necessary information BUT it has some missing changes for
xl/workbook.xml
By MS Excel
By Excelize
So:
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15"
this line it's causing the issueand
<workbookPr
tag need and additional paramcodeName="ThisWorkbook"
The text was updated successfully, but these errors were encountered: