+ Reply to Thread
Results 1 to 5 of 5

VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"

  1. #1
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"

    Folks,

    Please help me to build a macro to remove all SLASH “/” from Sheet (“Page 1 Cover Page”) Cell “B3” and Cell “B5” then replace with DASH “-“

    e.g. if Cell “B3” value is “ABC/DEFG/H” then macro to remove “/” then replace with “-“

    The Result must be “ABC-DEFG-H”

    e.g. if Cell “B5” value is “ABC/DEF” then macro to remove “/” then replace with “-“

    The Result must be “ABC-DEF”

    Thanks in advance for your expertise
    Cheers,

    Joshi
    Being with a winner makes you a winner

  2. #2
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"

    use record Macro Facility and get your desired Macro

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"

    Maybe:

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 03-14-2014 at 10:22 AM.

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

    Re: VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"

    If macro, this should do.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"

    Thank you all.

    Great code and advise.

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 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