我有以下代码:
sub refresh()
dim result2 as string
dim m as integer
dim activeWS as worksheet
For m = 6 To 10
code = activeWS.Cells(m, 8).Value
result 2 = "lkdsjlfaksj" ;a query, I would just put a random string for now, and it would change every time based on value of m
Call GetOTCStruc(result2, m)
Next m
end sub
'然后我在另一个函数上做一些事情,现在我只删除了代码
Option Explicit
Public Sub GetOTCStruc(result2 As String, m As Integer)
...
End Sub
但是,在Call GetOTCStruc(result2,m)上突出显示该部分时出错。有什么想法吗?
谢谢!