相关疑难解决方法(0)

调用具有多个参数的Sub时VBA返回错误

我试图弄清楚为什么在我调用a 并为其提供多个参数时VBA返回错误.(Compile error: Expected: =)Sub

Sub customerController(cleanStructure As Boolean, firstCol As Integer, latCol As Integer, _
                    lngCol As Integer, Optional startRow As Long, Optional endRow As Long)

Dim i As Long, j As Long, n As Long

If (cleanStructure = False) Then
    'customer data type
    If (startRow = "") Then i = 1
    If (endRow = "") Then j = countRows
    For n = i To j - i + 1
        generateURL(n, firstCol)
        newReadXMLData (url)
        ActiveSheet.Cells(i, …
Run Code Online (Sandbox Code Playgroud)

excel vba excel-vba

14
推荐指数
1
解决办法
3万
查看次数

标签 统计

excel ×1

excel-vba ×1

vba ×1