Hi,
I have seen the thread starting with Post 231708, but my problem is different:
I’m opening a file with no extension, its probably a txt file. The “Tools/Optiond/General/Conferm Conversion at open” is not checked. (It probably doesn’t matter whether it is or not.)
When I use SaveAs and gives it a filename as a txt document another dialog box opens, called File Conversion. It contains a warning of loosing formating and an Option to Insert Line breaks ending with CR/LF.
This is actually what I want to happen, but:
In a global template I intercept the SaveAs with a procedure:
Public Sub FileSaveAs()
Dim response As Variant
Dim Prompt As String, Heading As String
Dim Msg
With Application.Dialogs(wdDialogFileSaveAs)
.Name = “TypeNewName#”
‘ ActiveDocument.Saved = True
response = .Show
If response = 0 Then
Exit Sub
End If
On Error Resume Next
CUSTOMPROP = ActiveDocument.CustomDocumentProperties(“NoMacroTemplate”)
If Err.Number 0 Then
Exit Sub
End If
Err.Clear
End With
etc.
When the file has been saved as MyFile.txt the File Conversion dialog box does not open and I do not get the posibility to choose the Option to Insert Line breaks ending with CR/LF, which I want.
Anyone who can tel me why this happen and may how to get the dialog box to open?
Thanks!
Regards
Bj