I have vba code that executes outllok rules in the default inbox folder. I would like to use the same code to execute the rule in the Junk E-mail folder. Here is my code for the inbox folder. I know that I have to referebce the junk e-mail folder some how but I do not know how.
Dim objectstore As Outlook.Store
Dim colrules As Outlook.Rules
Dim objrule As Outlook.Rule, objcal As Outlook.Folder
Dim intcount As Integer
Dim strrrulelist As String
On Error Resume Next
Set objstore = Application.Session.DefaultStore
Set colrules = objstore.GetRules
colrules.Item("myrule").Execute showprogress:=True, Folder:=???????