+ Reply to Thread
Results 1 to 7 of 7

VBA not removing content infront of - (hyphen) and also remove -

  1. #1
    Forum Contributor keshavtale's Avatar
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    522

    VBA not removing content infront of - (hyphen) and also remove -

    please check attached file in that file there is VBA code i use this code to remove () bracket and content between that bracket
    from name in A column
    in that bracket VBA code remove that content of bracket and also remove bracket and also remove hyphen like this - and
    content infront of hyphen but if only
    hyphen - VBA not remove you can see in cell A33 - 250 VBA code should remove that - 250 you can see before after sheet so you
    can easily under stand
    Attached Files Attached Files
    Last edited by keshavtale; 02-10-2025 at 02:29 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,743

    Re: VBA not removing content infront of - (hyphen) and also remove -

    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,894

    Re: VBA not removing content infront of - (hyphen) and also remove -

    One guess,
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor keshavtale's Avatar
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    522

    Re: VBA not removing content infront of - (hyphen) and also remove -

    VBA code provided by you it should also remove bracket and it's text and remove hyphen
    for example if in A column there is name santa (hyd) - 250 then result should be santa

  5. #5
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: VBA not removing content infront of - (hyphen) and also remove -

    Please Login or Register  to view this content.
    Last edited by Sintek; 02-10-2025 at 05:06 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,743

    Re: VBA not removing content infront of - (hyphen) and also remove -

    See post 3: in future, give examples which reflect all needs.

  7. #7
    Forum Contributor keshavtale's Avatar
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    522

    Re: VBA not removing content infront of - (hyphen) and also remove -

    Thanks now my problem solved

+ 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. Removing Duplicates from Delimited Content
    By anonymous321 in forum Excel General
    Replies: 1
    Last Post: 10-08-2018, 10:46 PM
  2. [SOLVED] Removing Products Between Sheet Depending on Content
    By ryanb4614 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2015, 01:36 PM
  3. Replies: 1
    Last Post: 11-16-2014, 08:36 PM
  4. [SOLVED] Remove minus infront and behind of numbers in rang of cells
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2013, 03:07 AM
  5. Replies: 3
    Last Post: 03-04-2011, 09:31 AM
  6. Replies: 5
    Last Post: 01-28-2011, 07:02 PM
  7. [SOLVED] Excel should merge cells without removing content of any cell
    By Rumpa Biswas in forum Excel General
    Replies: 14
    Last Post: 12-31-2005, 08:35 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