Question

Goal: excel macro that creates a new lotus notes email subfolder

I am totally new when it comes to VBA and Lotus Notes in general. I would appreciate if smb would indicate some directions in achieving my goal, because until know I wasn't able to find anything similar.

1) how do I connect to needed mail (regarding this I saw some info, but a clear code example would be great)

2) how do I create the subfolder with a specified name and indicate the folder where it should be created

Was it helpful?

Solution

There is no API for a folder architechture because there really is no folder architecture. Nested folders are an illusion just based on the name of the folder. I.e., the folder name "folder1\folder2" indicates that folder2 appears to be inside folder1, but the structure is flat as far as all APIs are concerned.

The NotesDatabase.EnableFolder() method will create a folder. (It's a dumb name for the method!) Existing folders can be accessed via NotesDatabase.GetView() method because from the high-level API point of view Folder and Views are treated as equals. The NotesView.Remove() method can be used to delete a folder. The NotesView.Name property is read/write.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top