-3
I am learning VBA and in a sub where I try to assign the command below:
=PROCX([@[Empresa Emitente]];FORNECEDORES[Empresa Emitente];FORNECEDORES[DEPART];"";0;1)
Sub EXTRAIR_DEPART_UPDATE()
Dim lastRowNoClear
lastRowNoClear = Range("A16").End(xlDown).Row
For i = 16 To lastRowNoClear
Range("Q" & i).Select
If Cells(i, 17) = "" Then
Range("Q" & i).Value = "=PROCX([@[Empresa Emitente]],FORNECEDORES[Empresa Emitente],FORNECEDORES[DEPART],"""",0,1)"
End If
Next i
End Sub
Gives the following error #NOME?
and I realized that VB puts a @
after the sign of =
Could you tell me what I’m doing wrong?
Recommendation is not to leave everything in high box link.
– Jean Barbosa