ok i have been playing around with some things, and it works, BUT it only works for the inbox folder and not all folders of the same type
code:
----------------------------------------------------------------
Sub NewView()
'Creates a new view and modifies its properties.
'Accepts 1 or 2 element names and their values.
'The second element and value are optional.
Dim objViews As Views
Dim objView As View
'Set a reference to the MSXML type library.
Dim objXML As New MSXML2.DOMDocument
Dim objXMLNode As MSXML2.IXMLDOMNode
Set objViews = Outlook.Application.GetNamespace(Type:="MAPI").GetDefaultFolder(FolderType:=olFolderInbox).Views
Set objView = objViews.Add(Name:="New View", ViewType:=olTableView, SaveOption:=olViewSaveOptionAllFoldersOfType)
'Load the schema into the MSXML parser.
objXML.loadXML bstrXML:=objView.XML
'Select the node you want to modify and assign a new value.
Set objXMLNode = objXML.selectSingleNode(querystring:="view/arrangement/autogroup")
objXMLNode.nodeTypedValue = "0"
'Check if optional input values exist; if so, change settings.
Set objXMLNode = objXML.selectSingleNode(querystring:="view/previewpane/visible")
objXMLNode.nodeTypedValue = "0"
'Copy the modified XML back to the new view.
objView.XML = objXML.XML
'Save and apply the new view.
objView.Save
objView.Apply
End Sub
----------------------------------------------------------------
how would i get it to work on all folders?