Message 1 of 2

Not applicable
07-01-2019
09:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I got the code here from an old thread. It creates folders in the browser tree. Is it possible to make a code that does the opposite of what this code does?
So that it deletes "Folder 1" and "Folder 2"
Dim oFN() As String = { "Folder 1", "Folder 2" } Dim oDoc As Document = ThisApplication.ActiveDocument Dim oPane As BrowserPane = oDoc.BrowserPanes.ActivePane For Each oFolderName As String In oFN Dim oFolder As BrowserFolder = Nothing Try oFolder = oPane.TopNode.BrowserFolders(oFolderName) Catch oFolder = oPane.AddBrowserFolder(oFolderName, Nothing) End Try Next
Solved! Go to Solution.