Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automate the Excel VB Editor Find and Replace

Is it possible to write vba code that executes the Excel VB Editor Find and Replace function? If so how?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Automate the Excel VB Editor Find and Replace

There is no way to automate the full find and replace
functionality in the VBE. It doesn't support a Replace method.
The CodeModule object does support a Find method, so you could
use this to search for the desired text, use the Lines method to
get the text, modify the text as required, use DeleteLines to
delete the existing line and finally InsertLines to insert the
modified text in to the CodeModule.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"jtedge" wrote in message
...
Is it possible to write vba code that executes the Excel VB

Editor Find and Replace function? If so how?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate the Find function in Excel Eliott Excel Worksheet Functions 2 July 17th 08 06:47 PM
automate replace values in formula galiant Excel Discussion (Misc queries) 2 July 9th 06 03:40 PM
Need help find automate way to cross reference two GAINT excel databases!! bxc2739 Excel Worksheet Functions 1 April 21st 06 04:59 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
automate find & replace jasemhi Excel Programming 0 October 19th 03 02:00 AM


All times are GMT +1. The time now is 07:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"