Pergunta

I did this before but now I am unable to do it again. I want to create a macro and short cut to untabify selected lines. First , I select the lines I want to untabify. Then I choose record temporary macro. Then I select Edit - Advanced - Untabify Selected Lines. Then I click stop recording. In the Macro Explorer I have "TemporaryMacro" but if I undo my last action and run the macro, it doesn't do the untabify.

Here is the macro code:

Sub TemporaryMacro()
    DTE.ActiveDocument.Selection.Untabify()
End Sub
Foi útil?

Solução

This problem was caused by windows update KB2898869. Uninstalling it allows macros to work again in Visual Studio.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top