Question: I have a Word macro that has been working fine for ages. I have recently upgraded to Word 2013 and the behavior has changed.

It occurs on the following line:

```
        Doc.SaveAs Path + "Manual\" + TitleString + ".htm", wdFormatFilteredHTML

```

which builds a valid file path and name and saves the current document as an HTML page.

Under Word 2013, the macro opens a file save dialog box with no filename and with the default file extension (.docx) instead of (.htm), as if the filtered HTML mode was no more available.

I have tried with named arguments, and also with the new SaveAs2 method, but saw no change.

How can I solve this ?

Answer: 
I haven't found a way to configure this behavior, but as workaround you can explicitly select editor to be used with \*.cshtml files and then it works properly. 

Go to Tools -> Options -> Text Editor -> File Extension

![enter image description here](https://i.stack.imgur.com/lNuOF.png)

P.S. It looks like there were plans for HTML (Razor) text editor settings in a separate node, but I don't see it in release of VS 2013. See [HTML Editing Features in Visual Studio 2013 Preview](http://blogs.msdn.com/b/webdev/archive/2013/06/27/html-editing-features-in-visual-studio-2013-preview.aspx)

Also I saw that Tools -> Options -> Text Editor -> HTML (Web Forms) -> Formatting has options which specifically mention the behavior you are getting.
Tools->Options->Text Editor->XML->Formatting
(\*) Preserve manual attribute formatting

also, uncheck the other settings. Do you have Resharper or something else that could be affecting it as well?