문제

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
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top