Am_ac1

Hi,

I recorded a simple macro using CTRL+SHIFT+R. But when I play it using CTRL+SHIFT+P, nothing is happening. This happens with any type of recording. For ex. in its simplest form...

1) Press CTRL+SHIFT+R

2) delete a single character

3) Press CTRL+SHIFT+R

4) Press CTRL+SHIFT+P.... nothing happens.



Re: Visual C++ General Problem running temporary macro.

Am_ac1

Any sugestions please

Am_ac1 wrote:

Hi,

I recorded a simple macro using CTRL+SHIFT+R. But when I play it using CTRL+SHIFT+P, nothing is happening. This happens with any type of recording. For ex. in its simplest form...

1) Press CTRL+SHIFT+R

2) delete a single character

3) Press CTRL+SHIFT+R

4) Press CTRL+SHIFT+P.... nothing happens.





Re: Visual C++ General Problem running temporary macro.

Viorel.

Can you go to Tools -> Options -> Environment -> Keyboard and check if the Tools.RecordTemporaryMacro and Tools.RunTemporaryMacro commands have the shortcut associations you are trying to use





Re: Visual C++ General Problem running temporary macro.

Simple Samples

Is this something that has worked for you previously but not now or is this something you have never done before and is not working as you expect it to I have used temporary macros but not the way you are.






Re: Visual C++ General Problem running temporary macro.

Am_ac1

Viorel. wrote:

Can you go to Tools -> Options -> Environment -> Keyboard and check if the Tools.RecordTemporaryMacro and Tools.RunTemporaryMacro commands have the shortcut associations you are trying to use

Yes, the shortcuts are associated with Tools.RecordTemporaryMacro and Tools.RunTemporaryMacro. Also I see the macro source code in the Macros IDE. I tried to debug and run the macro from there but still it does not run.

I had a new installation of Visual studio 2005 just few days before and I do not think of having made some significant changes in the IDE settings.





Re: Visual C++ General Problem running temporary macro.

Am_ac1

Simple Samples wrote:
Is this something that has worked for you previously but not now or is this something you have never done before and is not working as you expect it to I have used temporary macros but not the way you are.

Hi,

I had a new installation of Visual studio 2005 just few days before and macros are not working from the first try. Previously I used such macros in Visual Studio 6 and there it was working fine.

Even the readymade macros supplied by Visual Studio 2005 are not working.





Re: Visual C++ General Problem running temporary macro.

Simple Samples

Apply the service pack for VS 2005.






Re: Visual C++ General Problem running temporary macro.

Bite Qiu - MSFT

Add to Sam's comment, for the detailed information of the cause and resolution, please see: http://support.microsoft.com/kb/928209

For ones that use visual studio 2008 beta2 that encountered such problem, you need to edit your macro file and put the "Sub ... End Sub" section into the "Public Module ... End Module" section.

hope it helps

rico






Re: Visual C++ General Problem running temporary macro.

Am_ac1

This works. Thanks!





Re: Visual C++ General Problem running temporary macro.

Code Kata

I'm on SP1(KB926601) and I'm still getting this. CTRL-SHIFT-R, followed by typing 'foo', followed by CTRL-SHIFT-R again results in this macro being saved to MyMacros:

Option Strict Off

Option Explicit Off

Imports System

Imports EnvDTE

Imports EnvDTE80

Imports System.Diagnostics

Public Module RecordingModule

Sub TemporaryMacro()

DTE.ActiveDocument.Selection.Text = "foo"

End Sub

End Module

CTRL-SHIFT-P does nothing, nor does manually running this macro from the Macro IDE (nor do any of the samples). Yes, all the hot-keys are setup correctly. Manually clicking on the approprate menu items to record and run a temporary macro also do nothing.

This is the list of packages I have installed to VS:

Microsoft Visual Studio 2005 Version 2.0.3115.0
Microsoft .NET Framework Version 2.0.50727
Installed Edition: Professional
Microsoft Visual Basic 2005
Microsoft Visual C# 2005
Microsoft Visual C++ 2005
Microsoft Visual J# 2005
Microsoft Visual Web Developer 2005
Microsoft Web Application Projects 2005
Crystal Reports for Visual Studio 2005
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
Xbox 360 Extensions for Visual Studio (6274)
Xoreax IncrediBuild 3.02 Beta

Macros worked perfectly for me under VS 2003. They have never worked under 2005, no matter what I install or uninstall. This is highly frustrating... Sad

Big Smile





Re: Visual C++ General Problem running temporary macro.

Am_ac1

Hi,

Have you shutdown Visual Studio before installing SP1 and have you rebooted the PC.

And even if this doesn't work I suggest to uninstall and reinstall MVS 2005 and then SP1 with proper rebooting between each installation.

Also do not alter the install options during MVS 2005 installation and accept all default settings.

Hope this helps you.

Regards.