Clear Recent Documents Menu

'Add a module to your project (In the menu choose Project -> Add Module, Then click Open)
'To see the results, Press on Start button and then choose Documents.
'You will see that the documents list is empty.
'Insert the following code to your module:

Declare Sub SHAddToRecentDocs Lib "shell32.dll" (ByVal uFlags As Long, _
ByVal pv As String)

'Insert the following code to your form:

Private Sub Form_Load()
Call SHAddToRecentDocs(2, vbNullString)
End Sub

Go Back