Excel—获取某字符在字符串中最后的位置

1、在Excel中打开VB代码编辑器

2、在【插入】-【模块】中编写代码。

Function InStrRev(str As String, findstr As String)
InStrRev = VBA.InStrRev(str, findstr)
End Function

3、excel中执行

 

posted @ 2021-07-06 20:52  cqyyck  阅读(426)  评论(0编辑  收藏  举报