I am using the following to close without saving.
MappointControl1.ActiveMap.Saved = True
The above works great except when a territory map has been opened. Then on closing we are getting the 'Save Map' popup which should be disabled. The code I am using to open the territory map is listed below.
Set objmap = MappointControl1.ActiveMap
Set objDataSet = .ImportTerritories(CSVFileName, , geoCountryUnitedKingdom, , geoImportExcelA1)
I have tried using the 'Quit' and I am still getting the window popup.
So my questions are
1) Is there anything special about how to close a territory
2) I was thinking about deleting the dataset before closing the map but the code listed below comes up the error;
'The requested set does not existbjDataSet.Delete'
Set objDataSet = objmap.DataSets.ImportData(CSVFileName)
Set objRecordset = objDataSet.QueryAllRecords
For Each objDataSet In objmap.DataSets
Thanks in advance