473,327 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Calling Macros In IDE

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.
Jul 21 '05 #1
6 1402
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" <gj*@umn.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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.

Jul 21 '05 #2
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.

Jul 21 '05 #3
> 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.
Jul 21 '05 #4
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.

Jul 21 '05 #5
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
{

}
Jul 21 '05 #6
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.

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert Scheer | last post by:
Hi. I have some macros recorded under MyMacros\Module1. One of these macros executes a task that already exists on a macro under Samples\Utilities, one of the group of macros installed by...
3
by: Prashant | last post by:
Okay this is my problem. I have a function, MainDisplay(char*) that takes in an argument of a string to display. Simple. I want this function to also be able to display the function that called...
4
by: Gunasekaran | last post by:
Dear all, I wrote a c program and tried to call NAG(desinged for FORTRAN)subroutine. I called as NAG as below d02bhf_( &x, &xend, &knor , y, &tol,&irelab, &hmax, &fcn, &g, w, &ifail);...
2
by: Andrew Arro | last post by:
is it possible to make smth like a loop of macroses? i.e. i want some macros to be called X times, all that on the PREPROCESSOR lever i was trying smth like #define vv_0 100 #define vv_1...
19
by: Ross A. Finlayson | last post by:
Hi, I hope you can help me understand the varargs facility. Say I am programming in ISO C including stdarg.h and I declare a function as so: void log_printf(const char* logfilename, const...
8
by: David | last post by:
Hi, I am using header file for driver so Can I define macro to call Kernel function ? What are the generatl rules for defining macro. - David
1
by: Baskar | last post by:
We have series of .SAS files (Macros), which produce output as graph and datasets. In some cases the output dataset is fed to the next set of Macros that gets executed. We need to call these Macros...
2
by: cr113 | last post by:
I just upgraded from Office 2000 to Office 2003. My VB.NET Excel macro calls don't work any longer. Here is how I make my Excel macro call from VB.NET: Dim objExcel as Excel.Application ...
5
by: Stinky Pete | last post by:
Hi (again) ;-) I'm still very much at the bottom of a steep learning curve with VB, so any and all help is always appreciated. I've found some code to generate the user names who have logged...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.