LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Map characters to their relative positions in a cell

I've been using an Excel 2003 macro to loop through text cells in a
spreadsheet that is sent to me from another office. My macro loops until
column H (formatted as text) is empty; that is ="" (equal to a null string).
It's been worked just fine until recently when the macro seems to end
prematurely. It returns a normal end but clearly there are additional rows
yet to be processed.

The row that causes the macro to finish prematurely always contains many
clearly visible character comments, sometimes 5-6,000 characters in length.
My hunch is that one or more special character sequences within the text is
causing the macro to call it quits. But what characters and where are they
in the string?

Is there a way to map the actual characters that appear in col H is a
separate spreadsheet? The way I envision it, I need a spreadsheet that would
display:
Col A as having one entry for each possible ASCII character that could be in
my text.
Col B thru X would show the displacements of each occurrence of that
character from the start of text in the cell.

With that information, I figure I could look for usage of non-standard ASCII
characters, modify them to asterisks for example and then retry the macro
until I find the bad one(s).

Ive read a number of interesting/informative posts about how to delete
troublesome characters that are known, but how can I delete these characters
if I don't know what they are or where they are?

Thanks in advance for any help.
John
 
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
Lock Relative Cell Positions? cncf Excel Discussion (Misc queries) 0 June 3rd 08 05:17 PM
Copying charts and their data with relative cell positions Fodder937 Charts and Charting in Excel 0 August 25th 06 11:15 PM
Relative positions from a button Steve Excel Programming 4 March 16th 06 04:38 PM
Testing positions in a cell MarcusA Excel Discussion (Misc queries) 2 November 4th 05 02:25 AM
How do I sum using relative cell positions? DavidB Excel Worksheet Functions 1 April 27th 05 03:44 AM


All times are GMT +1. The time now is 07:14 AM.

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"