how to programatically remove recent files from file menu ?

G

Grenier

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top