Foxtable(狐表)用户栏目专家坐堂 → [求助]单元格内删除特定字符串所在的行(或段)


  共有1914人关注过本帖树形打印复制链接

主题:[求助]单元格内删除特定字符串所在的行(或段)

帅哥哟,离线,有人找我吗?
有点色
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/6/29 14:30:00 [显示全部帖子]

Dim t As Table = Tables("表A")
For Each r As Row In t.Rows
    For Each c As Col In t.Cols
        Dim ns As String = ""
        For Each s As String In r.DataRow.Lines(c.name)
            Dim i1 As Integer = s.IndexOf("第")
            Dim i2 As Integer = s.IndexOf("列")
            If i1>=0 AndAlso i2>= 0 AndAlso i1<i2 Then
            Else
                ns &= s & vbcrlf
            End If
        Next
        r(c.name) = ns
    Next
Next

 回到顶部