python
import xlwings as xw
def test_vba():
wb = xw.Book.caller()
sht = wb.sheets[0]
sht.range('A1').value = '看到我了吗?'
VBA
Sub test_vba()
RunPython ("from test import test_vba;test_vba()")
End Sub
python
import xlwings as xw
def test_vba():
wb = xw.Book.caller()
sht = wb.sheets[0]
sht.range('A1').value = '看到我了吗?'
VBA
Sub test_vba()
RunPython ("from test import test_vba;test_vba()")
End Sub