+ Reply to Thread
Results 1 to 10 of 10

Remove a certain letter from a label

  1. #1
    Registered User
    Join Date
    01-24-2017
    Location
    London
    MS-Off Ver
    Office 2016
    Posts
    8

    Remove a certain letter from a label

    Hi guys,

    I have this label in my excel spreadsheet and it contains of some letters:

    (A,YE,M)

    But I want to run a code that can remove the brackets and commas so it can look like this:

    A YE M

    Except I am unable to find a solution anywhere on the internet. Help plz!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,471

    Re: Remove a certain letter from a label

    You can use Find and Replace for this.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-24-2017
    Location
    London
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: Remove a certain letter from a label

    I mean using a code.. like a code from a command button

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,471

    Re: Remove a certain letter from a label

    Why does it have to be a code?

  5. #5
    Registered User
    Join Date
    01-24-2017
    Location
    London
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: Remove a certain letter from a label

    Because I'm using VBA. Im sorry if I accidentally posted this in non-VBA forum..

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,471

    Re: Remove a certain letter from a label

    I've moved the thread for you.

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Remove a certain letter from a label

    Hello
    What do you mean by label? Is it a range? A textbox on userform?
    Generally if your text was in range (cell A1 for example), you can use this formula
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Remove a certain letter from a label

    In Sheetmodule.
    Replace Label 1 with proper label name.
    Had to put code in textfile because site was acting up.(again )
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  9. #9
    Registered User
    Join Date
    01-24-2017
    Location
    London
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: Remove a certain letter from a label

    By label I was meant to mean a ActiveX label.. but dont worry I fixed it now bakerman2's code works for me
    Last edited by DevKapadia16; 02-04-2017 at 10:03 PM.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Remove a certain letter from a label

    You're welcome and thanks for adding rep points.

    If this answers your question please mark the thread as Solved. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove label from pivot table
    By gdallas in forum Excel General
    Replies: 2
    Last Post: 04-09-2015, 03:44 AM
  2. [SOLVED] remove last character if any letter
    By s@skia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 11:23 AM
  3. Remove last letter + all following characters
    By Niclal in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-10-2013, 09:41 AM
  4. [SOLVED] Remove letter from numbers in cell
    By A11an in forum Excel General
    Replies: 3
    Last Post: 04-03-2013, 05:49 AM
  5. Remove Chart Label with Percentage 0.
    By Owais in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2006, 04:00 AM
  6. [SOLVED] How do I change column label from number to letter?
    By adel in forum Excel General
    Replies: 5
    Last Post: 06-23-2005, 08:05 PM
  7. [SOLVED] Remove the last letter from a string!
    By Mannyluk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2005, 12:06 PM

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