PC Review


Reply
Thread Tools Rate Thread

Calling Macros In IDE

 
 
Greg Smith
Guest
Posts: n/a
 
      29th Dec 2003
I'm sure there is a way to do this but I can't seem to find it. How do you
assign a key-stroke to a macro so you can call it from the editor?

What I would like to do is type Something-Something-S and have a macro I
created to generate a switch statement be called.

Any help is greatly appreciated.


 
Reply With Quote
 
 
 
 
William Ryan
Guest
Posts: n/a
 
      29th Dec 2003
One you record your macro, Select Tools, then Options in the IDE. The,
under the Environment folder (the first one) select KeyBoard. The middle
section will have a listbox with a bunch of stuff like Action.Add right
under a textbox titled Show Commands Containing:


From there, scroll down to your Macro. Macros.MyMacro.SomeNameForIt. You
can add your shortcut from there.

HTH,

Bill
"Greg Smith" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I'm sure there is a way to do this but I can't seem to find it. How do

you
> assign a key-stroke to a macro so you can call it from the editor?
>
> What I would like to do is type Something-Something-S and have a macro I
> created to generate a switch statement be called.
>
> Any help is greatly appreciated.
>
>



 
Reply With Quote
 
Tian Min Huang
Guest
Posts: n/a
 
      30th Dec 2003
Hello Greg,

Thanks for your post. Bill's reply is correct that you can map keyboard
shortcut for your macro in the "Tools" -> "Options" of VS .NET.

In addition, you can also open Macro Explorer under "Tools" -> "Macros" to
execute a macro.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

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

 
Reply With Quote
 
Greg Smith
Guest
Posts: n/a
 
      4th Jan 2004
> Thanks for your post. Bill's reply is correct that you can map keyboard
> shortcut for your macro in the "Tools" -> "Options" of VS .NET.
>
> In addition, you can also open Macro Explorer under "Tools" -> "Macros" to
> execute a macro.
>
> Please feel free to let me know if you have any problems or concerns.


Yes, one more question if it is not to much trouble. Does the VS IDE have
feature like Borland's C# IDE (for them it is Ctrl-J) that brings up a pick
list of code templates? I theirs you can Ctrl-J and select the switch
statement for the pick list and it enters a standard switch statement into
your code.


 
Reply With Quote
 
Tian Min Huang
Guest
Posts: n/a
 
      5th Jan 2004
Hello Greg,

>> Does the VS IDE have feature like Borland's C# IDE (for them it is

Ctrl-J) that brings up a pick list of code templates?

By "list of code templates", do you mean the Intellisense for auto code
completion? If so, VS .NET IDE has the same functionality and its shortcut
is also Ctrl+J.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

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

 
Reply With Quote
 
Greg Smith
Guest
Posts: n/a
 
      5th Jan 2004
Does the VS IDE have feature like Borland's C# IDE (for them it is
> Ctrl-J) that brings up a pick list of code templates?
>
> By "list of code templates", do you mean the Intellisense for auto code
> completion? If so, VS .NET IDE has the same functionality and its shortcut
> is also Ctrl+J.


No, Not the same. If you Ctrl-J and type s and hit the Enter key the
following code is pasted into your code at the cursor:

switch ()
{
case :
;
break;
case :
;
break;
}

If you Ctrl-J, t, down arrow you get a try catch:

try
{

}
catch (Exception ex)
{

}
finally
{

}


 
Reply With Quote
 
Tian Min Huang
Guest
Posts: n/a
 
      5th Jan 2004
Hello Greg,

Thanks for your information. Then, based on my experience, there is no such
equivalent functionality in VS .NET IDE. Sorry.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling macros =?Utf-8?B?U1lCUw==?= Microsoft Excel Programming 2 28th Apr 2007 04:22 PM
Problems calling macros in addin from within macros Andibevan Microsoft Excel Programming 2 16th Aug 2005 09:29 AM
Calling Macros From VB6 Diehard Microsoft Excel Programming 3 2nd Aug 2004 04:42 PM
Calling macros from a VB app =?Utf-8?B?TWluaWxlaw==?= Microsoft Excel Programming 2 13th Jul 2004 09:43 AM
Calling macros in another spreadsheet skimmer333 Microsoft Excel Programming 0 30th Sep 2003 01:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.