Link to home
Start Free TrialLog in
Avatar of mkill22
mkill22

asked on

Recent Files Menu List

I've asked this before but have been unable to make anything work yet.

I've made an editor and I want to display the 4 most recently used files in the file menu.

Avatar of KDivad
KDivad

Something like the following should work for you. Set the four menu item's visible property to false. Check for your recent files wherever you wish to store them. As you find each one, change the visible properties to true. Arrays
would work much better in this case.

With 4 menu items named menuRecentFile(0) through menuRecentFile(3) and an array named and dim-med RecentFile(0 to 3), use code like the following:

Sub Form_Load ()

For I = 0 to 3
If (check for file number I) then
menuRecentFile(I).Visible = True
RecentFile(I) = (name of recent file)
Next
...
...
End Sub
Avatar of mkill22

ASKER

Obviously this didn't work for me or I would not be asking again.
ASKER CERTIFIED SOLUTION
Avatar of s_lavie
s_lavie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
mmmmmmm...........

sorry , i didn't know it is your question

:o)