Open folder if non is selected

Joined
Sep 18, 2012
Messages
1
Reaction score
0
Hello I'm trying to create a macro, that opens a folder if no message is selected.
Can you please help me fix the code I have?
Here's the code I have below:

Sub Test1()
Set objFolder = GetDefaultFolder(olFolderInbox).Parent.Folders("_Archives")
If Application.ActiveExplorer.Selection.Count = 0 Then
Set objOlApp.ActiveExplorer.CurrentFolder = objFolder
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top