मैं यह पता लगाने की कोशिश कर रहा हूं कि 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, latCol).Value = lat
ActiveSheet.Cells(i, lngCol).Value = lng
Next
End If
End Sub
Sub
कि मैं फोन कर रहा हूँ दो पैरामीटर की आवश्यकता है:
Sub generateURL(row As Long, column As Long)
क्या आप इसे कॉल कर रहे हैं के लिए कोड पोस्ट कर सकते हैं? आपने ग्राहक नियंत्रक पोस्ट किया है लेकिन readAddress का जिक्र किया है? – InContext
ओह, मैंने अंतिम पंक्ति में गलत फ़ंक्शन पोस्ट किया था। मुझे 'generURL (n, firstcol)' पंक्ति में त्रुटि मिलती है। – MartinUKPL
'generURL n, firstCol)' से 'generURL n, firstCol' –