Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Replacing cells that have 2-3 letters


I'am have been unable to find a way to replace cells that have 2-
letters only.
I would greatly apperciate any help.

Thanks in advance
Dre

--
drew
-----------------------------------------------------------------------
drewd's Profile: http://www.excelforum.com/member.php...fo&userid=1474
View this thread: http://www.excelforum.com/showthread.php?threadid=26369

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Replacing cells that have 2-3 letters

Dim cell as Range
for each cell in
ActiveSheet.UsedRange.specialcells(xlconstants,xlT extValues)
if len(cell.Value) = 2 or len(cell.Value) = 3 then
cell.clearcontents
end if
Next

Not sure what you want to replace them with - in the above, the cell is
cleared.

--
Regards,
Tom Ogilvy

"drewd" wrote in message
...

I'am have been unable to find a way to replace cells that have 2-3
letters only.
I would greatly apperciate any help.

Thanks in advance
Drew


--
drewd
------------------------------------------------------------------------
drewd's Profile:

http://www.excelforum.com/member.php...o&userid=14749
View this thread: http://www.excelforum.com/showthread...hreadid=263697



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Replacing cells that have 2-3 letters

What do you want to replace with? Do you mean clear these cells? Are there
cells that have numbers with only 2 or 3 digits, or is the column all text?

On Sun, 26 Sep 2004 20:49:52 -0500, drewd
wrote:


I'am have been unable to find a way to replace cells that have 2-3
letters only.
I would greatly apperciate any help.

Thanks in advance
Drew


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
Replacing capital letters jezzica85 Excel Discussion (Misc queries) 5 February 23rd 10 06:49 AM
Count only Letters in cells that contain both letters and numbers TommyB Excel Worksheet Functions 2 August 8th 09 12:29 AM
Replacing only the empty cells. Colin Hayes Excel Worksheet Functions 3 June 18th 09 01:44 PM
Replacing letters for figures in formula Irene Excel Discussion (Misc queries) 11 January 6th 06 02:39 PM
Replacing blank cells Chris Stammers Excel Worksheet Functions 2 December 1st 05 01:41 PM


All times are GMT +1. The time now is 09:15 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"