Hello Guys,
I am using Netbeans 6.8 and trying to create a custom PHP comment code block macro the /* */ style and not the usual double slash.
So far with googling and asking in PHPUGPH, I got this macro code (tools->options->editor->macros):
copy-to-clipboard delete-previous "/*" paste-from-clipboard "*/"
You must first highlight ...
I run into situations where I have to repeat a single line of text with some minor editing.
For example:
1. insert into table_name (col_one, col_two) values (val_1, val_2);
2. insert into table_name (col_one, col_two) values (val_3, val_4);
3. insert into table_name (col_one, col_two) values (val_5, val_6);
and so on... (1000 records)
...
Hello,
Application.Run "MyWorkBook.xls!Macro1"
will work (run the macro called Macro1 in the MyWorkBook.xls file)
Application.Run "My Work Book.xls!Macro1"
will not (if the workbook name contains spaces, Excel says "the macro cannot be found").
I just spent hours figuring out that it's the spaces causing this problem...
Is there ...
Is there any way to print a message to the console from an Excel vba macro? I have a small VB .NET console application that calls an excel macro, and I'd like the error messages from the macro code to print to the console. Debug.print doesn't help as it only prints to the immediate window. Any ideas?
...
How do I record (or write) search and replace macro in Netbeans?
I want to record the actions I do in Ctrl+H dialog.
...
In a C# WinForms application (on .NET 3.5, probably 4.0 soonish), how would you go about allowing the user to define their own macros? For instance, a user could want the key press CTRL+K to mean clicking a certain item in the menu, and entering some text in the dialog opened by the menu, before pressing "Ok" to close the dialog.
Ideall...
for example i have about 500 lines. in the beginning of each line i want to add a number. so in line 1 i would want "1)" and then line 2 i would want "2)"
i know i can do a macro in n++, but it wouldn't be incremental. is there any possible way to do this?
...
Hi, this may seem like a trivial question but i am wanting to set up some hotkeys in Visual Studio to control the window layout.
For example, F10 would collapse all windows (such as the command from the windows main menu called - Auto Hide All) and then F11 which would dock and position certain windows of my choice at certain positions....
Is there a ready made lisp macro that allows chaining (piping) of functions? I couldn't find one. I'll try to explain what I mean with this example.
Instead of using let* with lots of unused intermediate variables like this:
(let*
((var1 (f1 x y))
(var2 (f2 x var1))
(var3 (f1 var2 z)))
var3)
I would like to have it written l...
The useful command
:r!date
is not so useful in gVim for Windows (not cygwin's gVim) because Windows has its own date function which does not do what I want.
so, something like
:r!c:\cygwin\bin\date
would be great. But that's a lot to type. And considering that I might want to call a few things this way, it would be nice to write a f...
While reading various C and C++ sources, I have encountered two macros __APPLE__ and __OSX__. I found plenty of use of __OSX__ in various codes, especially those originating from *BSD systems.
However, sometimes I find that testing __OSX__ only is not sufficient and I have to complete tests with __APPLE__ macro.
The Porting Command Li...
Hello!
My first attempt at creating an Excel VBA.
The macros below essentially change the background on the interior of a cell-range.
GenerateMarkerOnSheet sets interior to black.
ResetMarkerOnSheet is meant to roll-back the above change on Undo.
Is it possible to pass the previous interior as an argument to the Undo hander (ResetMa...
For example if have " size:1, color:red CH 4" in one cell
i want " size:1. color:red" new cell "4"
basically find "CH" and replace it with a new cell and everything in front of it.
anyone know how?
...
Hello everybody,
I am trying to optimize my work with VS by creating some macros. Currently I have the following macros:
Public Sub ReleaseBuild()
DTE.ExecuteCommand("Build.SolutionConfigurations", "Release")
DTE.ExecuteCommand("Build.RebuildSolution")
End Sub
Public Sub DebugBuild()
DTE.ExecuteCommand("Build.SolutionConfi...
We have an old project that we maintain that uses brace indenting. Rather than having to change my Visual Studio options every time I switch projects, I'd like to be able to do this quickly and easily.
I'm trying to write a macro in Visual Studio to turn Brace Indenting on and off.
The checkbox is under Text Editor -> C/C++ -> Forma...
when I include the "xmacro.h" in header file which is used by multiple header files i get linking error:
Error LNK2005: "char const * * iD_Strings" (?iD_Strings@@3PAPBDA) already defined in header_file.obj
1.//"xmacro.h"
2.
3.// (1) Define code generating macro
4.
5. #ifndef XMACRO_H
6. #define XMACRO_H
7.
8. #define GENERATE_IDS...
Hey,
I'm trying to define a macro which is suppose to take 2 string values and return them concatenated with a one space between them.
It seems I can use any character I want besides space.
for example:
#define conc(str1,str2) #str1 ## #str2
#define space_conc(str1,str2) conc(str1,-) ## #str2
space_conc(idan,oop);
space_conc woul...
It's possible to create user-defined macros in Source Insight. According to the Source Insight macro overview:
Macros are saved in a text file with a .EM extension. The files are added to your project, or to any project on the Project Symbol Path, or to the Base project. Once a macro file is part of the project, the macro functions ...
I have a sheet which has date with extra space at end. And i want to remove them so that i can format them as date and sort excel sheet.
I used macros available online for ex:
Sub TrimColumnA()
Dim rng As Range
On Error Resume Next ''#if entire column is blank, exit sub
Set rng = Intersect(Range("B1").EntireColumn, ActiveSheet.Use...
Hi all,
I need a macro to transform an value like 75B22636-668E-11CF-A6D900AA0062CE6C into {(char)0x75, (char)0xB2, (char)0x26, (char)0x36, (char)0x66, ... , (char)0x6C}. Does anyone know how to do it, or where can I find more
information about this kind of macro?
Thanks,
Andre
...