Function FiltString(SourceStr As String, SearchStr As String, Optional ReplaceStr As String = "") As String Dim I As Integer FiltString = SourceStr I = InStr(1, FiltString, SearchStr) Do While I > 0 FiltString = Mid(FiltString, 1, I - 1) & ReplaceStr & Mid(FiltString, I + 1) I = InStr(I + Len(ReplaceStr), FiltString, SearchStr) Loop End Function |
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2024-5-3 20:22 , Processed in 0.618862 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.