Questions tagged [visual-studio-macros]

A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically. Macros allow you to automate repetitive actions. Visual Studio includes the Macros integrated development environment (IDE), which is used solely for creating, manipulating, editing, and running macros. The Macros IDE is separate from the Visual Studio IDE.

The Visual Studio Macros integrated development environment (IDE) has the same look and feel as the Visual Studio IDE, but is separate from it. The Macros IDE includes the Code Editor and several tool windows. These windows function the same as their Visual Studio counterparts, except that they apply specifically to the code and projects within the Macros environment.

209 questions
0
votes
1 answer

Complex Macro- Creating tree relations

I need help creating a macro that will perform the following function, or something similar (I am not sure whether it is even possible to create such a macro) : I have 60,000 + rows of data with two columns, ASSEMBLIES and COMPONENTS. An Assembly…
Shivster
  • 83
  • 1
  • 8
0
votes
1 answer

Access excel VBA variable inside IE.navigate

I need to pass a variable inside a IE.navigate call in excel VBA. For example, my sample application will be something like this. Enter the first name: "SACHIN" Enter the last name: "TENDULKAR" I am storing the values of FN and LN in variables in…
Ramesh
  • 765
  • 7
  • 24
  • 52
0
votes
1 answer

Macro's "incomplete type not allowed" error?

I have defined a macro having two parameter as given below: #define DO_LIST_HEADER(Titem,MAX) typedef struct {\ int count;\ Titem array[MAX];\ } TOrderedList##Titem;\ \ void initialize_list##Titem(TOrderedList *list);\ int…
1011
  • 121
  • 1
  • 15
0
votes
3 answers

for each loop in excel macros vba jumping alternate rows

I have the below code in vba. The rows in sheet5 from columns a5 to a20 are: a5=Sweden a6=Spain a7=Russia a8=Italy a9=Germany a10=Finland a11=Norway a12=Switzerland a13=France a14=Belgium Set fillcolumnrange = Sheet5.Range("A5:A20") i = 1 For Each…
antnewbee
  • 1,779
  • 4
  • 25
  • 38
0
votes
1 answer

How to reference a solution from macro

I want to use this macro to format my code: http://www.kodefuguru.com/post/Format-Solution.aspx I guess I need to the change line: Dim sol As Solution = DTE.Solution My solution appears in Visual Studio 2010 like so: Solution 'ABC.Mmc.Client'…
numberwang
  • 313
  • 1
  • 6
  • 22
0
votes
1 answer

VS addin for quickly viewing preprocessed or assembly output

I'm searching for a one-click way to inspect preprocessed or assembly output. It's just tedious to open file properties, change the respective setting, compile, go to the obj directory and open the resulting file by hand. Does anyone know of any…
0
votes
2 answers

Visual Studio 2010 Macro to Create folders in a C# project

We have a big C# project in Visual Studio with multiple applications under it. Developers add their application in the project by creating folders manually. I was wondering if we can automate this using templates or macro. I guess adding folders and…
0
votes
3 answers

How to disable/re-enable macros in Excel?

I have been using a macro on an excel document that zooms in charts present in any sheet. The problem is, if I want to edit a chart, I must click it, triggering the zoom. For this particular reason, I need to disable macros, and was wondering if…
ravemir
  • 1,153
  • 2
  • 13
  • 29
0
votes
1 answer

Get a list of all variables and parameters in a Visual Studio project

My goal is to create a Visual Studio extension, macro, or addin that would give the user a list of all their variables and parameters. The user would then be able to rename any given variable in that list. How can I get a list of all variables and…
0
votes
1 answer

Where is a good Visual Studio Macro to iterate and list all menus (VS2008 if pos.)?

I've been explained there is a Macro which iterates through all the menus. Having checked CodeProject, and various places on the web I'm out of luck so far. Does anyone know any better? Thanks Beth
BethM
0
votes
1 answer

Under what conditions does the stringizing preprocessor operator add an _T?

The following code doesn't compile in my VC++ 2010 project: define MY_MAJOR_VERSION 20 define OLESTR_(str) L##str define MOLE( STR ) OLESTR_(#STR) define MAKE_STR(STR) MOLE(STR) REGMAP_ENTRY(MAKE_STR(VERSION),…
0
votes
3 answers

Visual Studio 2005 macros won't run

I'm trying to run the Visual Studio 2005 sample macro that attaches the debugger to calc.exe. Neither it nor any other macro seem to do anything when I run them. Calc.exe is running. "Tools->Options->Add-in/Macros Security->Allow macros to run"…
Adam
  • 338
  • 3
  • 3
0
votes
1 answer

Is there a VS2010 macro to remove all comments in an XML file

I would like a Visual Studio macro to remove all comments from a given XML file. For example, given this:
Brian Leeming
  • 11,540
  • 8
  • 32
  • 52
0
votes
1 answer

Excel Formatting Report Using Macros

I am looking at formatting a report which has been automatically generated by a 3rd party system. As we have no access to the Database directly i would like to build a Macro which would format the report into a more readable format. I had initially…
revolution14
  • 43
  • 1
  • 7
0
votes
2 answers

Create visual studio macro in console application

I will like to create visual studio macros in c#. What am I doing now is to create the macros in a class library then execute them from vba. the problem is that I cannot debug the macros because I cannot step into the dll from vba. Anyways I will…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
1 2 3
13
14