Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find and Replace that contains some word


Hello,
I would like to find and replace data in some column. Lets say in
column C.
But i have some problem....
The data in this column which i have to pepcace may contain some
aditional texts
For example :
I would like to replace .ACD with .ABC
in come cells .ACD have aditional texts .ADC Bookmark For You.
Is it possible to replace whole cell which Begins with .ADC with
..ABC??

I wrote this script but it doesnot work

Sub Replace()

Range("C").Replace What:=".ACD '*', Replacement:=".ABC"
End Sub


--
proton
------------------------------------------------------------------------
proton's Profile: http://www.excelforum.com/member.php...o&userid=36802
View this thread: http://www.excelforum.com/showthread...hreadid=571739

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Find and Replace that contains some word

Sub NewReplace()
Range("C:C").Replace What:=".ACD", Replacement:=".ABC", lookat:=xlPart
End Sub

Or

Sub NewReplace()
Range("C:C").Replace What:=".ACD*", Replacement:=".ABC"
End Sub

Not sure which you wanted - try them on copies of your data.....

HTH,
Bernie
MS Excel MVP


"proton" wrote in message
...

Hello,
I would like to find and replace data in some column. Lets say in
column C.
But i have some problem....
The data in this column which i have to pepcace may contain some
aditional texts
For example :
I would like to replace .ACD with .ABC
in come cells .ACD have aditional texts .ADC Bookmark For You.
Is it possible to replace whole cell which Begins with .ADC with
ABC??

I wrote this script but it doesnot work

Sub Replace()

Range("C").Replace What:=".ACD '*', Replacement:=".ABC"
End Sub


--
proton
------------------------------------------------------------------------
proton's Profile: http://www.excelforum.com/member.php...o&userid=36802
View this thread: http://www.excelforum.com/showthread...hreadid=571739



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find and Replace that contains some word


10xs a lot
Its working


--
proton
------------------------------------------------------------------------
proton's Profile: http://www.excelforum.com/member.php...o&userid=36802
View this thread: http://www.excelforum.com/showthread...hreadid=571739

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
find and replace \n wildcards like word julesgf Excel Discussion (Misc queries) 4 February 12th 09 03:11 AM
Find/Replace macro from excel to word Matt[_40_] Excel Programming 4 August 1st 06 03:43 AM
Find 1 word and replace it and leave the leading zero Leslie Excel Discussion (Misc queries) 2 March 8th 06 04:05 PM
Open word then find replace text Shawn G. Excel Programming 3 October 4th 05 01:32 PM
Word Automation - Find/Replace JMB Excel Discussion (Misc queries) 2 May 21st 05 10:34 PM


All times are GMT +1. The time now is 08:10 PM.

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

About Us

"It's about Microsoft Excel"