Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default find and replace text

if i have a image that is located at a location like this
http://www.website.com/site/images.p...ghi/DTT900.jpg
i just want DTT900.jpg

but the same find and replace has to work for something like this:
http://www.doba.com/site/images.prod...pics/1/160.jpg
and return 160.jpg

so basically i need it to find the last "/" then return anything after that.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 284
Default find and replace text

After you get your hyperlink as text, you can use something like:

strHTTP =
"http://www.website.com/site/images.products/2/PSproduct_pics/delonghi/DTT900.jpg"

arrPath = Split(strHTTP, "/")
strImageName = arrPath(UBound(arrPath))

MsgBox strImageName


Steve


"choice" wrote in message
...
if i have a image that is located at a location like this:
http://www.website.com/site/images.p...ghi/DTT900.jpg
i just want DTT900.jpg

but the same find and replace has to work for something like this:
http://www.doba.com/site/images.prod...pics/1/160.jpg
and return 160.jpg

so basically i need it to find the last "/" then return anything after
that.

Thanks in advance



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
Find & replace with text Waheeda Ali Excel Discussion (Misc queries) 2 January 27th 09 06:52 PM
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
Find & Replace in Text Box Ed Excel Discussion (Misc queries) 10 March 28th 07 03:03 AM
Find and Replace Text Jim Thomlinson[_3_] Excel Programming 3 October 25th 04 10:01 PM


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