How to Clear Windows Recent Documents List from your Visual Basic Application
Posted on August 20, 2009
Here is a procedure for your Visual Basic Application to clear Windows Recent Documents List.
1 2 3 4 5 6 7 8 9 10 | Option Explicit 'API Declarations Public Declare Sub SHAddToRecentDocs Lib "shell32.dll" (ByVal uFlags As Long, ByVal pv As String) Public Sub ClearRecentDocumentsList(optional ByVal bClear as Boolean=False) If bClear then SHAddToRecentDocs 0, CLng(0) End IF End Sub |
How can I use this Procedure:
'To clear Recent Documents List: Call ClearRecentDocumentsList(True)