View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Jenni_Sweden Jenni_Sweden is offline
external usenet poster
 
Posts: 10
Default Search and replace blanks

Thank you so much!!!! They both work but when I use

Set rng = SH.UsedRange

instead of writing

Set rng = SH.Range("A1:D30")

the processing time becomes very very long. Why is that?
--
I am very thankful for any fast assistance!


"Norman Jones" skrev:

Hi Samantha,

Great!! Thanxxx! Is there any way to refer to the entier Worksheet (I want
to
check all cells) without writing a large range?

Change:

Set rng = SH.Range("A1:D30") '<<===== CHANGE


to

Set rng = SH.UsedRange

Hmmm I am having another problem. Even cells containing just text are
"trimmed" e.g. market value does become marketvalue. is there any way to
avoid this? Pleaseeeeeeeeee! ;-)


Change:

If Not .Value Like "*[A-Z]*" Then


to
If Not UCase(.Value) Like "*[A-Z]*" Then

---
Regards,
Norman