excel - 如何返回字符串的一部分?
解决方案
试试下面的代码,这应该让你开始:
Sub ExtractMatchingCells()
'Define in which column data is located
col = 1
lastRow = Cells(Rows.Count, col).End(xlUp).Rows
For i = 1 To lastRow
' Extract cell value to cell to the right
If InStr(0, Cells(i, col), "bar (also csatlakozas)") > 0 Or InStr(0, Cells(i, col), "bar (hatso csatlakozas)") Then
Cells(i, col + 1) = Cells(i, col)
End If
Next
End Sub
推荐阅读
- wordpress - 如何在本地、测试和生产环境中高效地部署 Wordpress
- c# - Unity2D相机按玩家到物体的距离缩小,当它远离物体时放大
- python - 在类常量中调用类方法
- jenkins - Jenkins - 如何设置 XML 属性然后写回 XML 文件
- sql-server - 有没有办法用导入过程替换所有本地表?
- sql - 试图理解标量函数的作用
- excel - 尝试从带有参数的模块类调用子方法时出现错误 438
- swift - Swift 纪录片:参数显示在额外的框中
- c# - 使用 Angular/.net 核心 API 登录 Facebook
- sql-server - SQL Server 的 Worktable 逻辑读取仍然是每页 8k 吗?