LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Replaced text count

"OssieMac€¯ pisze:

I don't often give up but I'm giving up on this one. I thought I might be
able to do what you want but too many other problems kept raising their ugly
head.

Thanks anyway!
I don't want to change my macro, but I will need to do this.
I will change replace function to find in loop from Ms Help:

With Worksheets(1).Range("a1:a500")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Value = 5
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With

Inside this do ... loop I can cound changes in files.

Best Regards,
Bartosz


 
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
Accidently replaced a spreadsheet that I did not want replaced T Excel Discussion (Misc queries) 2 June 28th 07 04:52 PM
Some cells have been colored and should be replaced by text basha Excel Worksheet Functions 1 April 20th 07 04:09 PM
Text replaced with # jay_babcock Excel Discussion (Misc queries) 4 October 14th 05 10:28 PM
Why has my cell text been replaced by # characters? sggp Excel Discussion (Misc queries) 1 August 9th 05 09:31 PM
text replaced by #### Sheda Excel Discussion (Misc queries) 2 January 16th 05 03:23 PM


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