Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Find/replace [Zx] with [Znumber]

I have a worksheet with cells in column A containing text only. I need to
locate each instance of [Zx] and replace it with [Znumber]. For example: In
cell A1 the first [Zx] substring needs to be replaced with [Z1]. The second
instance of [Zx] needs to be replaced with [Z2]. If there are no more
instances in A1, then moving down to A2, the first instance of [Zx] in A2
needs to be replaced with [Z3], etc.

I only know how to do find/replace with fixed strings.

Thanks in Advance

--
Gary''s Student
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Find/replace [Zx] with [Znumber]

Gary,

You cannot use Replace which is probably what you are used to, but you need
to use Find and FindNext. Take a look in VBA help for details.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Gary''s Student" wrote in message
...
I have a worksheet with cells in column A containing text only. I need to
locate each instance of [Zx] and replace it with [Znumber]. For example:

In
cell A1 the first [Zx] substring needs to be replaced with [Z1]. The

second
instance of [Zx] needs to be replaced with [Z2]. If there are no more
instances in A1, then moving down to A2, the first instance of [Zx] in A2
needs to be replaced with [Z3], etc.

I only know how to do find/replace with fixed strings.

Thanks in Advance

--
Gary''s Student



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 & Replace: find part cell, replace whole cell katy Excel Worksheet Functions 3 April 3rd 23 01:20 PM
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
Find and replace results can the appearance of find be different? LLS at DPW Excel Discussion (Misc queries) 2 October 26th 09 11:16 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM


All times are GMT +1. The time now is 01:18 PM.

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"