Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Limitation of Find and Replace Text in Excel

I am trying to reformat some data in Excel to make some downloade
information more easily readable. The information to be manipulated i
a. In the download the different items of History are joined togethe
with a | delimiter to produce a long wrap around string.

I have an Excel macro which finds the | delimiter in the string an
converts this to a line break (i.e. vbLF or Alt+Enter). The expecte
result is that wherever | occurs, subsequent text is pushed to a ne
line.

I have found that the macro worked perfectly if the length of th
string does not exceed 911 characters. It failed if the length of th
string exceeded 911 characters.

would appreciate it if you could help investigate this further t
determine if there is something in our macro which has triggered th
lower limits.

I attach the following:
-
Sub Macro1()
ActiveWindow.ActivateNext
Cells.Select
Selection.Replace What:="|", Replacement:=vbLf, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False
_
ReplaceFormat:=False
End Sub
-
Look forward to your advice after testing

Best regard

Attachment filename: reformatter2.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=69728
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Limitation of Find and Replace Text in Excel

See a couple of replies at your other post.

"wolfteeth <" wrote:

I am trying to reformat some data in Excel to make some downloaded
information more easily readable. The information to be manipulated is
a. In the download the different items of History are joined together
with a | delimiter to produce a long wrap around string.

I have an Excel macro which finds the | delimiter in the string and
converts this to a line break (i.e. vbLF or Alt+Enter). The expected
result is that wherever | occurs, subsequent text is pushed to a new
line.

I have found that the macro worked perfectly if the length of the
string does not exceed 911 characters. It failed if the length of the
string exceeded 911 characters.

would appreciate it if you could help investigate this further to
determine if there is something in our macro which has triggered the
lower limits.

I attach the following:
-
Sub Macro1()
ActiveWindow.ActivateNext
Cells.Select
Selection.Replace What:="|", Replacement:=vbLf, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False,
_
ReplaceFormat:=False
End Sub
-
Look forward to your advice after testing

Best regards

Attachment filename: reformatter2.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=697280
---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

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
Replace can't find text dac Excel Discussion (Misc queries) 1 October 26th 07 10:26 PM
find text in cell and replace it with part of the text in that ce. jules Excel Discussion (Misc queries) 3 May 3rd 07 10:18 AM
Excel: Find/Replace for Data Validation text or Worksheet Objects [email protected] Excel Discussion (Misc queries) 3 May 22nd 06 07:16 PM
Find and replace should work in Excel text boxes Bob@Teton Excel Discussion (Misc queries) 0 October 20th 05 01:16 PM
Excel - Find & Replace text in a string bklim Excel Worksheet Functions 1 June 14th 05 06:42 AM


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