回覆列表
  • 1 # 生活出來一首詩

    大神給你來段vba 例子瞧瞧,

    Sub test()

    Dim xls_Folder As String

    xls_Folder =

    ThisWorkbook.Path

    & "\textxls"

    Dim xlsFiles() As String

    Dim fso, f, fc, s

    Set fso = CreateObject("Scripting.FileSystemObject")

    Set f = fso.GetFolder(xls_Folder)

    Set fc =

    f.Files

    s = ""

    For Each f1 In fc

    If Not StrComp(Right(f1.Name, 4), ".xls", 1) Then

    If s = "" Then

    s =

    f1.Name

    Else

    s = s & "|" &

    f1.Name

    End If

    End If

    Next

    xlsFiles = Split(s, "|")

    Dim i As Long

    Dim m As Long

    Dim n As Long

  • 中秋節和大豐收的關聯?
  • C語言:寫一函式,使輸入的一個字串按反序存放,在主函式中輸入輸出反序後的字串?