vbscript 10.检测网址www.mdpi.com/link

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 10.检测网址www.mdpi.com/link相关的知识,希望对你有一定的参考价值。

Sub supplLink()
Dim T As String
    T = "www.mdpi.com/xxx/s1, Figure S1: title, Table S1: title, Video S1: title"
    Selection.HomeKey wdStory
   
    With Selection.Find
        .ClearFormatting
        .Text = "Supplementary Materials:"
        .Font.Bold = -1
        .MatchWildcards = False
        .Replacement.Text = ""
        .Execute
        If .Found Then
            If InStr(Selection.Paragraphs(1).Range.Text, T) > 0 Then
                MsgBox "s"
            Else
                Selection.Range.HighlightColorIndex = wdRed
                Selection.comments.Add Selection.Range, "The link is wrong, please use '" + T + "' Please replace title with specific content"
            End If
        End If
    End With
    
End Sub

以上是关于vbscript 10.检测网址www.mdpi.com/link的主要内容,如果未能解决你的问题,请参考以下文章

vbscript 检测瘦客户端验证期间是否需要OLL。在6.1.0.10之前的KTM环境中是必需的

vbscript 禁止出现网址中带有sci-hub.tw网址

vbscript 检测是否有子表

vbscript 检测表/图/方案引用顺序

vbscript 检测结论是否掉小号

vbscript 检测小型大写