我写了几个简单的,大家有兴趣就copy了吧 Function CELLCOLOR(cells) Application.Volatile True CELLCOLOR = cells.Interior.ColorIndex End Function Function FONTCOLOR(cells) Application.Volatile True FONTCOLOR = cells.Font.ColorIndex End Function
Function FONTSIZE(cells) Application.Volatile True FONTSIZE = cells.Font.Size End Function
Function FONTSTYLE(cells) Application.Volatile True FONTSTYLE = cells.Font.FONTSTYLE End Function
Function IIT(cells) If cells >= 100000 Then IIT = cells * 0.45 - 15375 If cells < 100000 Then IIT = cells * 0.4 - 10375 If cells < 80000 Then IIT = cells * 0.35 - 6375 If cells < 60000 Then IIT = cells * 0.3 - 3375 If cells < 40000 Then IIT = cells * 0.25 - 1375 If cells < 20000 Then IIT = cells * 0.2 - 375 If cells < 5000 Then IIT = cells * 0.15 - 125 If cells < 2000 Then IIT = cells * 0.1 - 25 If cells < 500 Then IIT = cells * 0.05 If cells < 0 Then IIT = 0 Application.Volatile True End Function
|