在FormulaArray中替换不起作用

时间:2017-12-13 14:43:43

标签: excel vba excel-vba

我有以下公式,我想在公式阵列中输入,由于255个字符的限制,我使用了替换方法,但它没有用相应的字符串替换1111或2222.

ActiveWorkbook.Sheets("ModuleRecherche").Range("C4").FormulaArray = "=INDEX('[Decomposition PF.xlsx]Data'!$A:$A,MATCH(A10&""" & DN(posDN.row, i, 1) & """&""" & PN(posPN.row, J, 1) & """&D10&E10&""" & MAT(posMAT.row, k, 1) & """&""" & RACCORD(posRACCORD.row, m, 1) & """&H10,22221111,0)+1)"
ActiveWorkbook.Sheets("ModuleRecherche").Range("C4").Replace "2222", "'Decomposition PF.xlsx'!MyGrid[Famille]&'Decomposition PF.xlsx'!MyGrid[DN]&'Decomposition PF.xlsx'!MyGrid[PN]&'Decomposition PF.xlsx'!MyGrid[Sous-famille]&'Decomposition PF.xlsx'!MyGrid[Type de brut]&", LookAt:=xlPart
ActiveWorkbook.Sheets("ModuleRecherche").Range("C4").Replace "1111", "Proper('Decomposition PF.xlsx'!MyGrid[Matière de l''enveloppe])&'Decomposition PF.xlsx'!MyGrid[Type de raccordements]&'Decomposition PF.xlsx'!MyGrid[API]", LookAt:=xlPart

有人可以帮我这个吗?

0 个答案:

没有答案
相关问题
最新问题