小编Dav*_*eld的帖子

将 vba 转换为 Office-JS

我目前正在考虑将一些遗留的 vba 代码转换为 Office-js,我只是想就现有代码是否可以轻松传输以及它是否适用于客户端和 Web 版本的 Excel 提供一些建议。

'''
Sub Notes()
Dim mySheet As Worksheet, myOtherSheet As Worksheet, myBook As Workbook 'Define your workbooks and worksheets as variables
Set myBook = Excel.ActiveWorkbook
Set mySheet = myBook.Sheets("Conversions")
Set myOtherSheet = myBook.Sheets("Additional Notes")

Dim i As Integer, j As Integer 'Define a couple integer variables for counting

j = 4 'This variable will keep track of which row we're on in Sheet2 (I'm assuming you want to start on line 28)
For …
Run Code Online (Sandbox Code Playgroud)

excel vba office-js

4
推荐指数
2
解决办法
5294
查看次数

标签 统计

excel ×1

office-js ×1

vba ×1