|
Function gs(cel As Range)
Application.Volatile
fmltext = Replace(cel.Formula, "$", "")
fmltext = Replace(fmltext, "=", "")
Set regExp = CreateObject("VBScript.RegExp")
regExp.Pattern = "([^,\(\+\*/\^-]+\!)?[A-Za-z]{1,2}\d+"
regExp.Global = True
If regExp.test(fmltext) Then
Set mas = regExp.Execute(fmltext)
For i = mas.Count - 1 To 0 Step -1
Set ma = mas(i)
fmltext = WorksheetFunction.Replace(fmltext, ma.firstindex + 1, ma.Length, Evaluate(ma.Value))
Next
End If
gs = fmltext
End Function
如果跨工作表-表格显示公式计算过程.rar
(11.19 KB, 下载次数: 4)
|
评分
-
1
查看全部评分
-
|