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: 2
Default Finding and replacing text formatting for strings within a cell

I have four high-priority projects to finish in the next four days and
I think I'm too stressed out to find an answer for this sub-problem in
Excel.

I need to export a worksheet that has text formatting withen cells to
CSV. The program that reads in the CSV needs to restore the text
formatting. Here is an example with BOLDing:

1. Find a cell that has characters in BOLD. This may be the first
character in the cell, or a string of characters anywhere in the cell.
2. Save the contents of the cell.
2. Determine the beginning and ending characters of strings in the
cell that have a text format of BOLD.
3. Pre-pend and append <BOLD and </BOLD to the string. NOTE: this is
not HTML, I just chose them as a meaningful term.
4. Put everything back into the cell. I don't care if the whole cell
is now bold or not as I'm going to export to a CSV.

The programming importing the data can't read RTF files. And I can't
find a way to get the data into RTF anyway.

I tried using XML output from Excel using an XML Map in the hopes that
I could find a way to keep the formatting using XML tags, but I can't
find a way to keep the formatting. Probably my inexperience in
Schemas, but I don't have time to gain experience before this is all
due.

Help? Please? Anyone?

D
 
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
finding and replacing text with a blank Tom Excel Discussion (Misc queries) 2 May 10th 09 12:01 AM
Replacing hard returns in long text strings. Geoff C Excel Discussion (Misc queries) 3 November 20th 08 10:43 AM
Need formulas for finding text strings [email protected] Excel Programming 6 February 18th 07 12:08 AM
Replacing characters in numeric text strings and SUMming rkd Excel Discussion (Misc queries) 7 April 20th 06 12:25 PM
Finding text and replacing in VBA [email protected] Excel Programming 6 May 12th 05 02:42 PM


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