Questions tagged [macros]
***DO NOT USE for VBA / MS-Office languages. Use [vba] instead.*** A macro is a rule or pattern that specifies how a certain input sequence (often a sequence of characters) should be mapped to an output sequence (also often a sequence of characters) according to a defined procedure.
macros
13,707
questions
-7
votes
1
answer
90
views
What is the easiest way to remove a word from a string in excel?
Hi I have a excel in which one sheet A contains a table with a column which has comma separated value and another sheet B having some data.
So what I need I need to search the data from B to the ...
-8
votes
3
answers
180
views
Different output from macros and function definition [duplicate]
#include<stdio.h>
#define prod(a,b) ((a>b)?a*a:b*b)
int prod1(int a,int b){
return ((a>b)?a*a:b*b);
}
int main(){
int p=0,q=-1;
int p1=0,q1=-1;
printf("%d "...
-8
votes
1
answer
77
views
Copying columns of values from Excel worksheet to an HTML table in a website
I'm hoping to copy values from an excel table into an html table. If anyone has experience doing this between Excel 2013 and Internet Explorer 11, please let me know and I can give details. Thank you
...
-9
votes
1
answer
981
views
How to define infix notation macro in Lisp, without enclosing it in Lisp like syntax [closed]
So having watched 3 hours of youtube videos, and spent equally long reading about Lisp, I've yet to see these "magic macros" that allow one to write DSLs, or even do simple things like 4 + 5 without ...
-9
votes
1
answer
729
views
Traverse using macros in STL [closed]
#include<iostream>
#include<string>
#include<map>
using namespace std;
int main()
{
map<string, int> M;
int r = 0;
tr(M, it) //this line is causing trouble
{
...
-10
votes
5
answers
405
views
c++ preprocessor directive function [duplicate]
I have the following c++ code:
#include <iostream>
#define func(x) (x*x)-x
using namespace std;
int main(void) {
int i = 3;
cout << func(i+2) << endl;
}
Why does func(i+2) return ...
-14
votes
1
answer
165
views
Can someone explain this VBA macro code for me in English? [closed]
Sub Seperate_Item_Codes_and_Descriptions()
'Seperate the item codes and the descriptions and put them in respectively in columns D and E.
Dim s As Long, a As Long, aVALs As Variant
With Worksheets(...