DominicB
Well-known Member
- Joined
- Oct 3, 2005
- Messages
- 1,569
Hi all
I have been playing with the .RecentFiles property and have come across an oddity. The code below will remove the second item from your recently used files list (under the File menu) - assuming you have a second file there, and do not have your maximum flag set to 1 or 0 :
Sub test()
Application.RecentFiles(2).Delete
End Sub
When run this code will do what's intended, but it will also decrease your number of recently used files to show (Tools > Options, General) by 1. This flag is controlled by the Application.RecentFiles.Maximum instruction so shouldn't happen. Is this a bug (or a known issue) or am I missing something?
This is Excel 2003, Windows Pro XP (both SP2)
DoimnicB
I have been playing with the .RecentFiles property and have come across an oddity. The code below will remove the second item from your recently used files list (under the File menu) - assuming you have a second file there, and do not have your maximum flag set to 1 or 0 :
Sub test()
Application.RecentFiles(2).Delete
End Sub
When run this code will do what's intended, but it will also decrease your number of recently used files to show (Tools > Options, General) by 1. This flag is controlled by the Application.RecentFiles.Maximum instruction so shouldn't happen. Is this a bug (or a known issue) or am I missing something?
This is Excel 2003, Windows Pro XP (both SP2)
DoimnicB