Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Find in a string

Im tring to replace with ""
sUpcDescription = sUpcDescription.Replace("", "")
But for some reason its not reconizing "". Is there a char for this symbol.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Find in a string

Try using the Instr & Chr Functions like this

If InStr(1, sUpcDescription, Chr(62), vbBinaryCompare) Then
sUpcDescription = Replace(sUpcDescription, Chr(62), "", 1, 1)

"Mike" wrote:

Im tring to replace with ""
sUpcDescription = sUpcDescription.Replace("", "")
But for some reason its not reconizing "". Is there a char for this symbol.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Find in a string

Sub test()
Dim s1 As String, s2 As String
s1 = "ABC"
s2 = Replace(s1, "", "")

MsgBox s1 & vbCr & s2
End Sub

Regards,
Peter T

"Mike" wrote in message
...
Im tring to replace with ""
sUpcDescription = sUpcDescription.Replace("", "")
But for some reason its not reconizing "". Is there a char for this
symbol.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Find in a string

Try

Supcdescription = Replace(Supcdescription, "", "")
--
Trev B


"Mike" wrote:

Im tring to replace with ""
sUpcDescription = sUpcDescription.Replace("", "")
But for some reason its not reconizing "". Is there a char for this symbol.

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 String in another string - only between spaces Nir Excel Worksheet Functions 9 November 2nd 06 11:31 AM
Find Many String options in ONE String Nir Excel Worksheet Functions 6 October 26th 06 07:13 AM
search a string withing a string : find / search hangs itarnak[_9_] Excel Programming 4 October 24th 05 03:19 PM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM
find a string inside another string MarkS Excel Programming 1 January 13th 04 02:55 AM


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