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

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

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

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

3、excel中执行

原文地址:https://www.cnblogs.com/zs-chenkang/p/14978878.html