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
1
vote
1 answer

Setting a VCProject property to default

I'm trying some VS2005 IDE macros to modify a large amount of projects (~80) within a solution. Some of the properties I wish to set do expose a programmatic interface to 'default', but many others do not. Is there a generic way to set such…
Ofek Shilon
  • 14,734
  • 5
  • 67
  • 101
1
vote
1 answer

OnBuildBegin does not fire in Visual Studio Macro until I run it from Macro Explorer

I have the following Visual Studio Macro: Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports MyMacros.EnvironmentEvents Imports System.Diagnostics Public Module Module1 Private WithEvents buildEvents As EnvDTE.BuildEvents…
Luhmann
  • 3,860
  • 26
  • 33
1
vote
1 answer

Locate all graphics

I have 100+ Word documents each with 1000+ pictures. I need to "view" all of them one by one in a doc and also count the total number of pics in a document. I tried using "Find Graphics" ---"^g". However it does not locate all the pics. After…
firaq pasto
  • 91
  • 2
  • 8
1
vote
1 answer

Visual Studio Macros stopped working

My Visual Studio Macros stopped working, with no errors displayed or logged I could find. (I did think it was something I did to my machine.)
Mark Hurd
  • 10,665
  • 10
  • 68
  • 101
1
vote
1 answer

How to add macro under visual studio 2012

I just found that cocos2d-x 3.0 beta has defined own macro "$(EngineRoot)" under vs2012 proj, I want to know how to do it! I can not upload the img...
1
vote
2 answers

Getting the current line number using Visual Studio Macros?

So I looked through other user's question but couldn't find on specifically upon what I am looking for. What I am trying to do is very simple. I am writing a Visual Studio Macro and am trying to obtain the number of the current line that the…
Jake
  • 181
  • 2
  • 15
1
vote
2 answers

Find everything that are NOT

One of our customers sent me this huge excel file and one of my tasks is to build a macro that will clean up data in few sheets. Now, I found this excellent example where one user is suggesting to use the Excel Find Method to speed up the…
AlwaysANovice
  • 983
  • 4
  • 15
  • 34
1
vote
1 answer

Visual Studio relative path for Output Directory macro doesn't seem to be working properly

I'm receiving the following build warning when attempting to compile a .sln for Chromium: Warning 1 warning MSB8012: TargetPath(C:\chromiumtrunk\chromium\src\base\allocator\..\..\build\Debug\allocator_extension_thunks.lib) does not match the…
Sean Anderson
  • 27,963
  • 30
  • 126
  • 237
1
vote
1 answer

Method 'range' of object _global failed when doing nothing

I have a big macro which basically processes some columns and spits out results based on some cross-checking with an access 2003 database. It works absolutely fine - no hitches at all. However, I recently had to make a modification to it. It was…
nclfrk799
  • 35
  • 1
  • 8
1
vote
1 answer

VBA Macro not detecting Interior or Font Color properly

I have some VBA code which works on two columns: Column A and Column B. Basically, it loops over Column B, and tries to find each Column B value in Column A. Additionally, some values in Column A have a Cell (Interior) color of Blue. So there can be…
Ahmad
  • 12,886
  • 30
  • 93
  • 146
1
vote
1 answer

Python / PyWin32 / Script to run an excel macro not working

This simple code is not working. I'm sure that the filepath is correct, but it seems that the problem is coming from a failure to open/add the workbook with the "Workbooks.Add" function. Here's the code: from win32com.client import…
Samsun Knight
  • 51
  • 1
  • 3
1
vote
3 answers

Find missing references in Visual Studio

I have a huge solution file with lots of projects in it. I suspect that some of the projects that are referenced to by other projects are missing from solution. Is there an easy way to detect missing references in Visual Studio? (I am using 2008)
Serhat Ozgel
  • 23,496
  • 29
  • 102
  • 138
1
vote
0 answers

Can a Visual Studio Macro "$(TargetDir)" be used at design time?

Is it possible to resolve the path of $(TargetDir) in code at design time? This would be useful for me because I have two different XML files that need processing, one for Debug, and one for Release. I though about instantiating an instance of…
IamIC
  • 17,747
  • 20
  • 91
  • 154
1
vote
2 answers

Edit excel sheet manually while running a code

I would like to know if i can fill in a row of values manually during the run of a code when a msgbox is displayed by the code asking me to fill the same. I tried filling them but after i press 'ok' on the message box, the code continues to run and…
Sravanth42
  • 11
  • 2
1
vote
0 answers

VS macro for RunToCursor functionality with ignoring breakpoints

I tried to create a simple macro to ignore breakpoints when doing RunToCursor. But for some reason the RunToCursor call doesn't work at all ("Operation not supported") and breakpoint states aren't properly reset either. Some are reactivated but not…