PC Review


Reply
Thread Tools Rate Thread

Add-In / Macro Help

 
 
Alex Stevens
Guest
Posts: n/a
 
      23rd Jul 2004
Hi All,

I was hoping that someone could put me in the right direction with a utility
I'm trying to write for myself.
I would like to have a search which would find a string anywhere in my
current project, and copy the whole line either to a ouput window, or
optionally to a file.

Where would I even start with this.
Would someone give me a few pointers?

Thanks

Alex


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWF0dA==?=
Guest
Posts: n/a
 
      23rd Jul 2004
I know VB.NET has a function, INSTR(), that tells you whether a certain substring is contained in the whole string.

I hope this helps.

Matt

"Alex Stevens" wrote:

> Hi All,
>
> I was hoping that someone could put me in the right direction with a utility
> I'm trying to write for myself.
> I would like to have a search which would find a string anywhere in my
> current project, and copy the whole line either to a ouput window, or
> optionally to a file.
>
> Where would I even start with this.
> Would someone give me a few pointers?
>
> Thanks
>
> Alex
>
>
>

 
Reply With Quote
 
Tufan Erdinc [MSFT]
Guest
Posts: n/a
 
      26th Jul 2004
Hi Alex,

The best place to start is to look at similar samples and walkthrougs and
start your project by re-using some of those samples.

There's a macro sample on MSDN for adding a text in a VB code editor. That
may help you start with using Text Documents.

http://msdn.microsoft.com/library/de...codewindow.asp

Also if you start VS and Go to Tools-Macros-Macro Explorer, you will see a
"Samples" Macro project. In those samples you can take a look at samples
under Utilities, like "FindLine", "FindCase" etc. Also you can use Macro
Recorder (Tools-Macros-Record Temporary Macro) to get code for some common
actions that you may use in your project.

Let me know if you need anything else.

Thanks
Tufan


"Alex Stevens" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I was hoping that someone could put me in the right direction with a
> utility
> I'm trying to write for myself.
> I would like to have a search which would find a string anywhere in my
> current project, and copy the whole line either to a ouput window, or
> optionally to a file.
>
> Where would I even start with this.
> Would someone give me a few pointers?
>
> Thanks
>
> Alex
>
>



 
Reply With Quote
 
Carlos J. Quintero [MVP]
Guest
Posts: n/a
 
      2nd Aug 2004
You have a lot of resources in the Files section of the forum below to get
you started with add-ins/macros:
--

Carlos J. Quintero (Visual Developer - .NET MVP)

FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)



"Alex Stevens" <(E-Mail Removed)> escribió en el mensaje
news:(E-Mail Removed)...
> Hi All,
>
> I was hoping that someone could put me in the right direction with a

utility
> I'm trying to write for myself.
> I would like to have a search which would find a string anywhere in my
> current project, and copy the whole line either to a ouput window, or
> optionally to a file.
>
> Where would I even start with this.
> Would someone give me a few pointers?
>
> Thanks
>
> Alex
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro recorded... tabs & file names changed, macro hangs Steve Microsoft Excel Worksheet Functions 3 30th Oct 2009 11:41 AM
::: Sort macro with empty lines at the end. ::: Macro de tri avec lignes vide en bas. infojacques@gmail.com Microsoft Excel Discussion 2 5th Jul 2007 11:40 AM
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor karll@swfab.com Microsoft Excel Programming 2 30th Mar 2007 07:48 PM
Run Macro On Open event for report and SetValue Macro has wierd error ThompsonJessical@yahoo.com Microsoft Access Macros 2 2nd Aug 2005 05:51 PM
Start Macro / Stop Macro / Restart Macro Pete Microsoft Excel Programming 2 21st Nov 2003 05:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:56 PM.