Ok, Well incase someone else comes looking. I caved, and just saved the file as a DWG in the temp location, then I delete the file when I'm done... I haven't tested it extensively yet, but it seems to do the trick.
Sub CleanAndClose()
Dim Drawing As AcadDocument
Dim SS As AcadSelectionSet
Dim FilterType(0) As Integer
Dim FilterData(0) As Variant
On Error GoTo SubErr
Set Drawing = Application.ActiveDocument
For Each SS In Drawing.SelectionSets
If SS.Name = "SS" Then
SS.Delete
End If
Next
Set SS = Drawing.SelectionSets.Add("SS")
FilterType(0) = 8 'DXF Code for layers
FilterData(0) = "JUNK" 'Layer Name
SS.Select acSelectionSetAll, , , FilterType, FilterData
SS.Erase
ZoomExtents
'Need to save file in temp location, before exporting dxf
Dim TempFilePath As String
Dim DXFFilePath As String
TempFilePath = Environ("Temp") & "\" & Left(Drawing.Name, Len(Drawing.Name) - 4) & ".dwg"
DXFFilePath = Left(Drawing.FullName, Len(Drawing.FullName) - 4) & ".dxf"
Drawing.SaveAs TempFilePath
Drawing.SaveAs DXFFilePath, ac2000_dxf
Drawing.Close False
DeleteFile TempFilePath
SubExit:
Exit Sub
SubErr:
'Need to check to see if a temp file has been created and delete it if it has.
If TempFilePath <> "" Then
modSupport.DeleteFile TempFilePath
End If
End Sub
Function FileExists(ByVal FileToTest As String) As Boolean
'http://stackoverflow.com/questions/67835/deleting-a-file-in-vba
FileExists = (Dir(FileToTest) <> "")
End Function
Sub DeleteFile(ByVal FileToDelete As String)
'http://stackoverflow.com/questions/67835/deleting-a-file-in-vba
If FileExists(FileToDelete) Then 'See above
' First remove readonly attribute, if set
SetAttr FileToDelete, vbNormal
' Then delete the file
Kill FileToDelete
End If
End Sub