|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Function myCon(tarR As Range) As String
myCon = "#N/A"
If tarR.Columns.Count <> 20 Or tarR.Rows.Count > 1 Then Exit Function
Dim gyArr As Variant, valArr As Variant
gyArr = Array("裁纸(x)-", "瓦纸(x)-", "印刷(x)-", "丝印(x)-", "胶检(x)-", "修切(x)-", "过油(x)-", "吸塑油(x)-", "过油磨光(x)-", "复膜(x)-", "压纹(x)-", "UV(x)-", "局部UV(x)-", "烫金(x)-", "烫银(x)-", "瓦裱(x)-", "凹凸(x)-", "轧盒(x)-", "糊盒(x)-", "成品挑标(x)-")
valArr = tarR.Value
myCon = ""
For i = 1 To 20
myCon = myCon & IIf(valArr(1, i), Replace(gyArr(i - 1), "x", valArr(1, i)), "")
Next
If Right(myCon, 1) = "-" Then myCon = Left(myCon, Len(myCon) - 1)
End Function |
|