macros

Can I run Excel from a .cmd script with all macros enabled?

How can I run excel from command line / cmd script such that it doesn't prompt if I want to enable macros in the spreadsheet I am running it with? ...

Defining Binary Macros in C++

Hi all, Can someone explain why the following error happens: #define bla "\xA" char a [2] = {0}; memcpy (a,bla,1); // a[0] = 0x0a <- Correct //a[1] = bla; // '=' : cannot convert from 'const char [2]' to 'char' Thanks, RM ...

How do I invoke a GNU make macro created using define?

Is there any difference in the two ways GREP is invoked in my Makefile? Any reason I should use one or the other? Both seem to produce the same result. define GREP $(word 3,$(shell echo "#define FOO 0xfff00100")) endef all: @echo $(GREP) @echo $(call GREP) ...

What's a Solution or Formula to export a text field with padded spaces in Access 2003, to a txt file

Hello Im using Access2003 database, with 2 tables, and a single query, a macro to view the files, and a macro to export the files (delimited, not fixed), and a form. The Main table is built as follows: "Employee Name" ;data type: text ,field size:22. "Employee ID" ;data type: text ,field size:22. "RT #" ;data type: text , fi...

emacs style keyboard macros in visual studio

Hi, I'd like to use emacs style keyboard macros in Visual Studio, which for the most part I can do through these shortcut mappings... but I can't figure out a keyboard shortcut to repeat the next command x times. In emacs, I could record my macro, then type Esc, #, ctrl+x, e where # is the number of times I want to repeat my macro....

What is wrong with this macro in Clojure?

(defmacro nif [expr pos zer neg] '(condp = (Integer/signum ~expr) -1 ~neg 0 ~zer 1 ~pos)) I get this error. 1:1 user=> #<Namespace Chapter7Macros> 1:2 Chapter7Macros=> (nif 1 (+ 2 2) (- 2 2) (- 3 2)) 1:3 Chapter7Macros=> java.lang.Exception: Unable to resolve symbol: expr in this context (repl-1:57) ...

Is there anyway to have vim not count special characters as words?

I'm using VIM do alot of work for me using the macros. There's alot of text in columns and I want the macro to move between columns effortlessly by pressing the w key to "move to the beginning of the next word" For example: DataSourceName string "" DetailFields []string ...

How might I write a "defn" macro in Clojure?

I was practicing writing macros and I can't seem to get defn to work. My syntax is: (my-define name parameter body) Ignoring & parameters and recursive routines, How do I bind the name to a (fn[parameter] body)? ...

What c preprocessor macros have already been defined, gcc?

In gcc, wow can I check what C preprocessor definitions are in place during the compilation of a C program, in particular what standard or platform-specific macrodefinitions are defined? ...

Visual Studio - How to disable autoformat/correct while running macro?

When running a macro that changes the selected text, tags are automatically closed and the text formatted. How can I prevent that from happening? For example, wrapping text in a tag: DTE.ActiveDocument.Selection.Text = String.Format("<tag>{0}</tag>", DTE.ActiveDocument.Selection.Text) Ends up with two closing tags: <tag>Text</tag></...

Excel macro help - checking if boxes on left or right are populated

Hello I have an application that generates an HTML report that can be opened in Excel. I have written macros to try and format this report so it is sortable and can have filters applied. The length of these reports is impossible to guess as it can be larger some weeks, smaller others. I am trying to write a vba script macro in orde...

Visual Assist Macros

Do you have any visual assist macros that you write and you want to share? it can be very useful on coding.. people who use Visual-Assist knows that.. ...

How to programmatically remove the digital signature from VBA macros in Excel?

Is there any way to programmatically remove the digital signature from the VBA macros of an Excel sheet? i.e. code that is equivalent to entering the VBA editor, going to Tools menu -> Digital Signature and clicking Remove. ...

Visual Studio 2008 macro only works from the Macro IDE, not the Macro Explorer

Edit: Creating a new module in the same VSMacros project fixed the problem. The following macro only works if I open the Macro IDE from Visual Studio and run the macro from there. It'd be much more useful if I could just right click the macro from the Macro Explorer from my Visual Studio instance. I must be doing something obviously...

Can anyone explain why macro creation and running in VS2008 is so excruciatingly slow?

Hello folks. I work with VS2008sp1, but the same problem was in VS2005 as well. Creating and running macros are so slow, that I prefer doing it Notepad++. Still, if anyone can indicate a reason and how to fix it, that would be great. Thanks. ...

Pass parameter to Outlook Script

I am trying to run a script on a outlook email message. I want to be able to pass a parameter to the VB script. I was trying to make the script do different things based on which outlook folder the message was moved to. But in the outlook rules the "Run a script" seems to always be the first action that is performed. So when the script r...

Macros in Visual Studio 2008

Is it possible to configure Visual Studio 2008 to automatically remove lines in a sql file like this: prompt PL/SQL Developer import file prompt Created on jueves, 30 de julio de 2009 by pepe set feedback off set define off prompt Disabling triggers for MYTABLE... alter table MYTABLE disable all triggers; Remove lines that starts wit...

Move page specific jscript and css to another file with a macro in visual studio

I'd like to create a macro which moves all my page specific style and javascript to named files. For example: default.aspx contains <html> <head> <title>Weeee</title> <link type="text/css" rel="stylesheet" href="../content/style.css"/> <style type="text/css"> /*page specific style*/ </style> <script type="text/javascript" src="../con...

Download a Macro-Enabled Excel Workbook with PHP

I want to download a macro-enabled Excel workbook from my PHP page. When the workbook displays, the macro should run. How can I ensure the macro will run after the user opens the Excel workbook? ...

C: Personal Preprocessor Directives

Being a C novice I would like to hear what Macro "define"s developers are using. I've been thinking about putting these in a header to skip verbosity I've become used to: #define TS_ typedef struct { #define _TS(x) } x; #define I(x)_ { int i; for ( i = 1; i <= x; i++ ) { #define _I } } Can I add \n \t etc within these macros? ...