LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help replace string within another string

I want to replace <scale0.5</scale and <scale0.7</scale in the string of
text belong. This string is in a cell. i only need to change the 0.5 and the
0.7. The point is I don't know what the value between <scale </scale, will
be. I just want to change them.
But there are two <scale </scale in the cell. I need to be able to
differentiate between the first one and the second one. I need to figure out
a way such that when I get the 2 values, i.e, 1.0 and 1.2, that I am going to
replace the old values with, I want to select the cell that contain the
string below and replace in the first <scale0.5</scale with
<scale1.0</scale and the second <scale0.7</scale with <scale1.2</scale
I don't know if it is possible to use something like:
Replace("<scale*.*</scale", "*.*", replace[, start[, count[, compare]]])










"<Style id=""normal_MS_Actaul""
<IconStyle
<colorff7f00ff</color
<scale0.5</scale
<Icon

<hrefhttp://maps.google.com/mapfiles/ms/icons/red-dot.png</href
</Icon
<hotspot x=""0.5"" y=""0""
xunits=""fraction"" yunits=""fraction""/
</IconStyle
<LabelStyle
<scale0.5</scale
</LabelStyle
</Style
<Style id=""highlight_MS_Actaul""
<IconStyle
<colorff7f00ff</color
<scale0.7</scale
<Icon

<hrefhttp://maps.google.com/mapfiles/ms/icons/red-dot.png</href
</Icon
<hotspot x=""0.7"" y=""0""
xunits=""fraction"" yunits=""fraction""/
</IconStyle
<LabelStyle
<scale0.7</scale
</LabelStyle
</Style
<StyleMap id=""Actual_StyleMap""
<Pair
<keynormal</key
<styleUrl#normal_MS_Actaul</styleUrl
</Pair
<Pair
<keyhighlight</key
<styleUrl#highlight_MS_Actaul</styleUrl
</Pair
</StyleMap"

 
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 string Geoff Excel Programming 12 May 21st 08 02:33 PM
Replace Hyperlink Addresses Help 'Dim OldStr As String, NewStr As String Ron[_14_] Excel Programming 6 January 23rd 07 07:38 PM
How do I replace last numeric string from a alphanumeric string? Christy Excel Discussion (Misc queries) 3 August 11th 06 12:17 AM
replace in a string M Excel Programming 2 September 11th 05 02:25 PM
A Macro to replace a string in a cell with a string from another cell??? Plica05 Excel Programming 2 August 16th 05 09:23 AM


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