我有两个数组: DirCurrentArray和DirHistoryArray,但似乎无法从DirHistoryArray获取DirCurrentArray中唯一的值
Dim DirCurrentArray As String
Dim DirHistoryArray As Variant
'Gets Filenames into Array
Do While xFile <> ""
DirCurrentArray(fileCount) = xFile
xFile = Dir$
fileCount = fileCount + 1
Loop
For Each i In DirCurrentArray
For Each j In DirHistoryArray
If i = j Then
finalCount = finalCount + 1
DirFinalArray(finalCount) = i
End If
Next j
Next i
我想要的结果是删除了在DirHistoryArray中找到的所有值的DirCurrentyArray
https://stackoverflow.com/questions/51163310
复制相似问题