+ Reply to Thread
Results 1 to 3 of 3

Delete part of Cell value

Hybrid View

Sidney Brubacher Delete part of Cell value 07-01-2009, 10:00 AM
DonkeyOte Re: Delete part of Cell value 07-01-2009, 10:43 AM
Sidney Brubacher Re: Delete part of Cell value 07-01-2009, 11:04 AM
  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Delete part of Cell value

    Hi,
    I am a new to this forum with below average VBA expierience (googling and coping, modifying)
    I need help with VBA coding for command button on an Excel template, Column B on the spredsheet gets the Part Description vaules, we copy and paste from Customers excel and unfortunatly some descriptions contain 3asteriks in a row (***) and I need to import this into Access later on and Access will not except asteriks.
    Find and replace doesnt seem to work like i hoped , it replaces everything in cell not just part of it
    If someone has a Formula that will work that would be ok too, it does not have ot be VBA

    EXAMPLE Part Descriptions:
    RADIAL TIE DOWN LUG (4/500's) *** Formed
    FINES V-PLOW/ SCRAPER MOUNT ANGLE; Rev. A ***Formed

    I only need the asteriks deleted

    Thanks so much in advance for your help !
    Last edited by Sidney Brubacher; 07-01-2009 at 11:04 AM. Reason: Solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Delete part of Cell value

    You can use Edit -> Replace but you need to use ~ to denote a literal * (* by default is a wildcard)

    So run Edit -> Replace & Replace: ~*~*~* With: [leave blank]

    Should clean your data.

  3. #3
    Registered User
    Join Date
    07-01-2009
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Delete part of Cell value

    DonkeyOte,
    Thankyou !! Fixed !

+ Reply to Thread

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