Results 1 to 8 of 8

Remove part of string

Threaded View

Desi_bhai Remove part of string 09-27-2007, 11:54 AM
StephenR Can you explain in plain... 09-27-2007, 12:53 PM
Desi_bhai I am trying to remove... 09-27-2007, 12:58 PM
VBA Noob See if this gives you any... 09-27-2007, 01:28 PM
Desi_bhai This helps, but what exactly... 09-27-2007, 01:42 PM
avveerkar for testing I am assuming... 09-27-2007, 01:43 PM
VBA Noob I added InStr(1, Cel,... 09-27-2007, 01:45 PM
Desi_bhai Thank you A V Veerkar, that... 09-27-2007, 01:47 PM
  1. #1
    Registered User
    Join Date
    09-26-2007
    Posts
    9

    Remove part of string

    I have a column as such:
    123/456
    RENT/214
    789/456
    123/989

    What I need to do is, look at the text before the "/" and replace the whole string with another string (based on the pre-defined value).

    I have created a loop to loop through the rows in the a single column and replace a specific value:
     Range("b2").Select
         For q = 0 To 10
         If ActiveCell.Offset(q, 0).Value = Left("123/456",7) THEN
     ActiveCell.Offset(q, 0).Value = "555"
     End If
          Next q
    I haven't figured out how to strip part of the word. Any help would be appreciated.
    Last edited by Desi_bhai; 09-27-2007 at 01:10 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1