我是从http://docs.xlwings.org/en/stable/vba.html / Python 3.5.1 | Anaconda 2.5.0(32位)创建的示例 (默认,2016年1月29日,15:46:01) /并收到错误
--
---------------------------
Error
---------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python3\mymodule.py", line 7, in rand_numbers
n = int(Range('Sheet1', 'B1').value) # Write desired dimensions into Cell B1
File "C:\Python3\lib\site-packages\xlwings\main.py", line 701, in __init__
self.xl_sheet = xlplatform.get_worksheet(self.xl_workbook, sheet_name_or_index)
File "C:\Python3\lib\site-packages\xlwings\_xlwindows.py", line 240, in get_worksheet
return xl_workbook.Sheets(sheet)
File "C:\Python3\lib\site-packages\win32com\client\dynamic.py", line 192, in __call__
return self._get_good_object_(self._oleobj_.Invoke(*allArgs),self._olerepr_.defaultDispatchName,None)
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147352565), None) …
Run Code Online (Sandbox Code Playgroud) 是否可以将 OfficeJS 命令按钮放置到像 .xlam 文件一样构建的自定义 VBA 插件面板?
* 我仍然希望混合使用 VBA 和 OfficeJS