Hopefully this will be of help to some, as I have found loadsa and loadsa postings looking for a way to open a folder that has just been created in LS without closing and opening the dB.
After reading most of them and spending a couple of frustrating hours, here is what I have done.
If it does not help you, sorry, if it does happy days.
Dim workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim dbThis As NotesDatabase
Dim uidbThis As NotesUIDatabase
Set dbThis = session.CurrentDatabase
Call dbthis.EnableFolder( “Why_I_Hate_Notes_Sometimes” )
…… add docs to the folder etc.
Call workspace.OpenDatabase( dbThis.Server, dbThis.Filepath, “”, “”, True, False )
Set uidbThis = workspace.CurrentDatabase
Call uidbThis.OpenView( “Why_I_Hate_Notes_Sometimes”, “”, False, True )
Okay so you end up with the folder open in a new tab on the workspace but it works ……
I found I had to open the database then set the view, using the folder name in the third OpenDatabase parameter caused an error.