Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Macros and Macro Files

0 views
Skip to first unread message

Corey Cooper

unread,
Feb 18, 2004, 4:42:16 PM2/18/04
to
I am just learning VC7, I'm used to VC6. I have downloaded a couple of
macros from CodeProject.com, I put them in a directlry called MyMacros, in a
file called CCVBScript.vbs, into which I pasted the macros I wanted. In the
Macro explorer it's listed as MyMacros:Module1. However, if I try and
assign a key to them, they don't appear in the list. I have all the macros
in the samples directory, but not in MyMacros. I've looked and looked
throught the macro documentaiont and can't figure out what I'm doing wrong.
Do I have to have all myu macros in the Samples directory?

Corey Cooper
CoreyC at NSInnovativeDesign dot com (remove NS)


Gary Chang

unread,
Feb 19, 2004, 1:41:18 AM2/19/04
to
Hi Corey,

Thanks for posting in the community.

From your description, I understand that you have problem to assign a key
to a VS.NET IDE's Macro
Please correct me if there is any misunderstand.

>In the Macro explorer it's listed as MyMacros:Module1.

Do you mean your downloaded macros have been listed within the
MyMacros/Module1 node?

If so, I can easily find them in the list of
Tools/Options/Environment/Keyboard.

If it is not your case, how about paste those macros into the
MyMacros/Module1 file or directly create a new macro module and paste them
in?


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Corey Cooper

unread,
Feb 19, 2004, 2:21:43 AM2/19/04
to
They are in the file identified as Module1, but the individual macros do not
appear in the Macro Explorer.


"Gary Chang" <v-ga...@online.microsoft.com> wrote in message
news:5V07cNr...@cpmsftngxa07.phx.gbl...

Gary Chang

unread,
Feb 19, 2004, 2:35:17 AM2/19/04
to
Hi Corey,

>If it is not your case, how about paste those macros into the

>MyMacros/Module1 file.

I mean open the MyMacros/Module1in the VS.NET IDE, then directly post the
macros into it.

Corey Cooper

unread,
Feb 19, 2004, 3:27:57 PM2/19/04
to
> I mean open the MyMacros/Module1in the VS.NET IDE, then directly post the
> macros into it.

That's how I got them there in the first place. They are in the text file
CCVBScript.vbs because I pasted them in. The format was correct enough for
the module to be name Module1, but the macros in the file are not
recognized.
c.


"Gary Chang" <v-ga...@online.microsoft.com> wrote in message

news:bv6itrr9...@cpmsftngxa07.phx.gbl...

Corey Cooper

unread,
Feb 19, 2004, 9:04:17 PM2/19/04
to
I found the info on CodeProject.com;
I double-clicked Module1 in the Macro Explorer, and then pasted in the
macros from CodeProject, incluing the "Public Module FindFunction" and "End
Module" lines.
For those of you who arent' saying "But of course you can't do that!":

I quote from CodeProject, Parenthetical comments added by me.

In VS Macro Explorer select the macro you you wish to add this module to
Select "New Module..." from the context menu
Type in FindFunction (or the module name you want to create)
Now edit the module and paste the macro functions inside
Public Module FindFunction

End Module
The functions should then be available in the Customize Keyboard list

"Corey Cooper" <Cor...@InnovativeDesign.com> wrote in message
news:uMseUgm9...@TK2MSFTNGP10.phx.gbl...

Gary Chang

unread,
Feb 20, 2004, 4:01:51 AM2/20/04
to
Hi Corey,

Thanks for your quickly reply!

>That's how I got them there in the first place. They are in the text file
>CCVBScript.vbs because I pasted them in. The format was correct enough for
>the module to be name Module1, but the macros in the file are not
>recognized.

Does it mean you directly paste them in the "MyMacros - Microsoft Visual
Studio Macros [design] - Module1" sub IDE's text editor, then save it?

How about the CCVBScript.vbs file, does your VS.NET IDE has some
configuration which relates itself to it?

Gary Chang

unread,
Feb 23, 2004, 8:21:57 PM2/23/04
to
Hi Corey,

Does the Macro work as I described?

If the problem still persists, please free to reply this message.

0 new messages