小编max*_*dus的帖子

VBA中的SQL"%"等效项

在VBA中是否有任何SQL等效的"%"符号?我需要返回几个文件,只是中间有一些字符.

帮助真的很感激!

例如,这是我的代码:我需要从该网页下载名称为2013的所有文件,并以不同方式保存和调用它们.这个任务可能吗?

Sub Sample()
    Dim strURL As String
    Dim strPath As String
    Dim i As Integer

    strURL = "http://cetatenie.just.ro/wp-content/uploads/Ordin-********.2013.pdf"

    strPath = "C:\Documents and Settings\ee28118\Desktop\178.pdf"

    Ret = URLDownloadToFile(0, strURL, strPath, 0, 0)

    If Ret = 0 Then
        MsgBox "File successfully downloaded"
    Else
        MsgBox "Unable to download the file"
    End If
End Sub
Run Code Online (Sandbox Code Playgroud)

excel vba excel-vba

3
推荐指数
1
解决办法
442
查看次数

标签 统计

excel ×1

excel-vba ×1

vba ×1