how to programatically remove recent files from file menu ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi !

I'm able to disable almost every menu items in commandbars like so...

'disable database property from file menu
Dim cbc As CommandBarControl
Set cbc = CommandBars("Menu Bar").FindControl(ID:=2939, recursive:=True)
cbc.Enabled = False
Set cbc = Nothing

The 'recent files' has the ID:=831.
But I cannot remove or disable the recent open files in the file menu. I
know that I can 'hard set it' in tool;option.. but when I do that, all my
database will loose there recent files. I only want to remove recent files on
a particular database. I would disable when the databese open and enable when
it close.

Merci !
JFGrenier.
 
Back
Top