Excel VBA - 创建新工作簿而不将其添加到跳转列表

时间:2017-07-01 22:41:47

标签: excel-vba vba excel

创建新工作簿的方法是不将文件名添加到excel的跳转列表中吗?

1 个答案:

答案 0 :(得分:0)

您可以从RecentFiles集合中删除工作簿的条目,如下所示:

Dim r As RecentFile
Dim wb As Workbook

' Change this to point to the workbook to be removed from the jump list
Set wb = ThisWorkbook

For Each r In Application.RecentFiles
    If r.Path = wb.FullName Then
        r.Delete
        Exit For
    End If
Next r