Oi gente tudo bom?
Poderiam por favor me ajudar? Estou precisando incluir a fórmula do IF ISERROR (SE EERRO em portugues) através do VBA para uma macro que eu já possuo (veja abaixo a macro):
----------------------------------
Sub Coletor()
For i = 1 To 91
'cells(#LINHA, #COLUNA)
'Aqui so mudar os valores da coluna Mudar somenre os valores de 'R'
Sheets("Equip + Custo Variável").Cells(i + 9, 7) = "=Planilha_Suporte!R31C" & (i + 2)
Sheets("Equip + Custo Variável").Cells(i + 9, 10) = "=Planilha_Suporte!R18C" & (i + 2)
Sheets("Equip + Custo Variável").Cells(i + 9, 14) = "=Planilha_Suporte!R31C" & (i + 2)
Sheets("Equip + Custo Variável").Cells(i + 9, 15) = "=Planilha_Suporte!R17C" & (i + 2)
Sheets("Equip + Custo Variável").Cells(i + 9, 17) = "=Planilha_Suporte!R31C" & (i + 2)
Sheets("Equip + Custo Variável").Cells(i + 9, 22) = "=R" & (i + 9) & "C20/RC[-1]+Planilha_Suporte!R31C" & (i + 2)
Next i
End Sub
------------------------------
Essa macro serve para fazer com que os valores de colunas de planilhas diferentes sigam na ordem. Porém estou precisando incluir a fórmula IF ISERRO. Como eu conseguiria fazer isso para somente a última linha da macro > Sheets("Equip + Custo Variável").Cells(i + 9, 22) = "=R" & (i + 9) & "C20/RC[-1]+Planilha_Suporte!R31C" & (i + 2)