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: 92
Default Find and Replace in a DDE string!!!

I would like to replace 2 sets of characters within a DDE string/object/link
(not sure of the correct term) accross a row of cells with a value entered
into 2 cells at the begining of the row ie

Cells C1:S1 contain DDE links to an external program from which live data is
retrieved, an example of which-

=the962|IQVALUE!'L12O099R(G)'

A1 - value of L22 is entered by the user.
B1 - value of O055 is entered by the user.

What I would like to happen is when the user enters L22 into A1, L** is
found in the DDE link and replaced with L22. Simalarly, when O055 is entered
into B1, O*** is found and replaced with O055. The letter in brackets at the
end of the link needs to remain intact.

I have tried recording a macro to get me started with the code but I cant
figure out how to use a cell value and wildcards as the find and replace
criteria.

Thanks in Advance for any help.
 
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
Find & Replace a string contained in a link Matt from GVA Excel Discussion (Misc queries) 3 September 5th 06 01:24 PM
Find and replace part of a text string [email protected] Excel Discussion (Misc queries) 2 July 10th 06 10:34 PM
Excel - Find & Replace text in a string bklim Excel Programming 5 June 14th 05 07:37 AM
Excel - Find & Replace text in a string bklim Excel Worksheet Functions 1 June 14th 05 06:42 AM
Find/Replace String MysticalNomad Excel Programming 0 October 27th 04 11:59 AM


All times are GMT +1. The time now is 11:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"