K
K
Kryptonit2022-04-13 20:31:55
Visual Basic
Kryptonit, 2022-04-13 20:31:55

How to fix Expectid list separator or ) VBA error?

I recently started using VBA, please tell me what could be wrong:
I have an active sheet, the name of which dynamically comes to the module (lstname), this sheet has several cells in which values ​​\u200b\u200bare written (matrix), I want to calculate its determinant, I decided use the mdterm function, but the error "Expectid list separator or )" crashes, I did not find the documentation, or most likely did not understand it.

Option Explicit
Public Sub MatrixFunc(lstname As String)
Dim Det As Variant, Matrix As Variant
'Det = ThisWorkbook.Worksheets(lstname).MDETERM(B2:E5)
'...
End Sub
Вместо ... результат хочу вставить в какую-нибудь ячейку, подскажите что не так делаю

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question