visual-studio-macros

How to Use/Enable (RegExp object) Regular Expression using VBA (MACRO) in word

孤者浪人 提交于 2019-11-26 09:48:27
问题 I did lot of Googling to get a proper answer on how to use or start using Regular Expressions in VBA. At last I got it so I\'d like to share my knowledge with you guys. Please correct me if I am wrong. 回答1: By default Regular Expression option is disabled in word 2007, to enable that plase do following steps, 1). Go to Tools > References as shown below. 2). Now put a tick on "Microsoft VBScript Regular Expressions 5.5" option and then press oh as shown below. 3). Now onward you can create a

Alternative to macros in Visual Studio 2012

喜夏-厌秋 提交于 2019-11-26 04:17:52
问题 I use macros extensively for ViewModel properties in XAML development. I use them even more in WCF to generate Message and DataContract properties. To my disappointment, the macros I\'ve built aren\'t going to be usable in Visual Studio 2012. An example of what I\'m talking about, for a VM, I would enter something like this. int id; string name; Select both lines, run a macro and end up with private int _id; private string _name; public int Id { get {return _id;} set { if(_id != value) { _id