locked
Visual Studio 2005: Macros do not run RRS feed

  • Question

  • Hi there,
    After reïnstallation of Visual Studio, macro's do not run any more.
    version info:

    Microsoft Visual Studio 2005
    Version 8.0.50727.42 (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727 SP2
    
    Installed Edition: Professional
    
    Microsoft Visual Basic 2005  77626-009-0000007-41203
    Microsoft Visual Basic 2005
    
    Microsoft Visual C# 2005  77626-009-0000007-41203
    Microsoft Visual C# 2005
    
    Microsoft Visual C++ 2005  77626-009-0000007-41203
    Microsoft Visual C++ 2005
    
    Microsoft Visual J# 2005  77626-009-0000007-41203
    Microsoft Visual J# 2005
    
    Microsoft Visual Web Developer 2005  77626-009-0000007-41203
    Microsoft Visual Web Developer 2005
    
    Crystal Reports  AAC60-G0CSA4B-V7000AY
    Crystal Reports for Visual Studio 2005
    
    
    SQL Server Analysis Services  
    Microsoft SQL Server Analysis Services Designer 
    Version 9.00.4035.00
    
    SQL Server Integration Services  
    Microsoft SQL Server Integration Services Designer
    Version 9.00.4035.00
    
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers 
    Version 9.00.4035.00
    
    Visual Studio Package Load Analyzer  1.0
    A utility that analyzes package load failures in Visual Studio 2005.

     Is there a bug that should be fixed?

    Jos


    I'll be back
    Monday, June 6, 2011 11:18 AM

Answers

  • Ho Josje,

    Could you let us know if is is resolved after you install SP1 and all updates?

    Cheers,

    Yi


    Yi Feng Li [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Josje Thursday, July 21, 2011 9:18 AM
    Tuesday, June 14, 2011 5:04 AM

All replies

  • Hello,

    If you record a new marco, does it run with your visual studio?

    If you apply Visual Studio 2005 sp1 and latest updated, does it fix the problem?

    Regards,

    Yi


    Yi Feng Li [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, June 8, 2011 1:30 PM
  • Hi Yi,

    If I record a new macro, it is recorded and I can see the the macro:

    Option Strict Off
    Option Explicit Off
    Imports System
    Imports EnvDTE
    Imports EnvDTE80
    Imports System.Diagnostics
    
    Public Module RecordingModule
    	Sub TemporaryMacro()
    	DTE.ExecuteCommand ("Build.DeploySolution")
    	DTE.ExecuteCommand("View.Output")
    	End Sub
    End Module
    

    But if I try to run it in any way I know (Macros -> Run TemporaryMacro, F5 with the mouse on Sub TemporarayMacro or in the Immediate Window: >Macros.MyMacros.RecordingModule.TemporaryMacro) nothing happens.

    I'll ask our network technician to install SP1 and all updates....

    Jos


    I'll be back
    Thursday, June 9, 2011 11:20 AM
  • Ho Josje,

    Could you let us know if is is resolved after you install SP1 and all updates?

    Cheers,

    Yi


    Yi Feng Li [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Josje Thursday, July 21, 2011 9:18 AM
    Tuesday, June 14, 2011 5:04 AM
  • Hi Yi,

    In the mean while, our network technician has installed an entirely new virtual server under Windows Server 2008 R2 with Visual Studio 2008 Professional and Office 2010. Macro's in this VS2008 do run.

    However if I try to run Visual Studio EnvDTE80.DTE2 in order to use function like ReplaceInFiles, I get "Cannot create ActiveX"
    As far as I can gather my new account does not have enough priviliges to run the DTE2 ActiveX.
    What can I tell the technician to alter, so I can execute:

        ' Create a new instance of Visual Studio.
        Dim Inst As Object
        Dim DTE2 As EnvDTE80.DTE2
        Inst = Microsoft.VisualBasic.Interaction.CreateObject("VisualStudio.DTE.8.0", "")
        DTE2 = CType(Inst, EnvDTE80.DTE2)
        MsgBox(DTE2.DisplayMode.ToString)
    
    

    Note: The error occurs on the line with CreateObject. Tried other variations, but the all give simular errors.


    I'll be back
    Monday, July 18, 2011 7:04 PM