+ Reply to Thread
Results 1 to 3 of 3

Pls help to fix the code to remove dash in a range

  1. #1
    Registered User
    Join Date
    03-14-2019
    Location
    VN
    MS-Off Ver
    MS 2007
    Posts
    1

    Pls help to fix the code to remove dash in a range

    Hi everyone,
    I would to remove all dash in a range which selected but it only works for one cell in selection eventhough many cells in selected. EX: from AZ015283MST-4 to AZ015283MST without "-4". If you have free time pls help me. Thanks in advance!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 03-14-2019 at 12:55 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Pls help to fix the code to remove dash in a range

    1) Isn't it just
    Please Login or Register  to view this content.
    2)
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    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
    79,369

    Re: Pls help to fix the code to remove dash in a range

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.
    Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I have added the link for you this time.)

    https://www.ozgrid.com/forum/forum/h...ash-in-a-range

    Nor does your post comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html

    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

    Please take a moment to read our forum rules before posting again.
    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.

+ 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 after Dash
    By plank22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2018, 08:10 PM
  2. [SOLVED] Formula/Code to remove first 3 numbers and dash
    By Legend Rubber in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-17-2015, 09:24 AM
  3. Remove dash from Date
    By mma3824 in forum Excel General
    Replies: 1
    Last Post: 10-30-2012, 07:04 AM
  4. remove the dash
    By sigdig in forum Excel General
    Replies: 3
    Last Post: 10-24-2006, 12:13 AM
  5. [SOLVED] Remove dash(s)
    By Pierre in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-14-2006, 11:00 PM
  6. [SOLVED] remove a dash from part numbers
    By Mr Happy in forum Excel General
    Replies: 3
    Last Post: 05-25-2006, 04:10 PM
  7. Remove dash in cell
    By dyukon in forum Excel General
    Replies: 3
    Last Post: 01-19-2006, 12:50 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