+ Reply to Thread
Results 1 to 2 of 2

How to replace special character (square box) in cell

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    NC, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to replace special character (square box) in cell

    Hi,
    I have 4000 records with special character"[]" in a sheet. I can replace "[]" this square box manually, but those are in 4000 rows. Is there any VB script which can replace this special character with "TAB" space. Please help me out

    Thank you
    Anil

  2. #2
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: How to replace special character (square box) in cell

    Hi,

    this code should help

    Sub Replace ()
    With ActiveSheet
    Columns("E:E").Select
    Selection.Replace What:="[]", Replacement:=""""
    End With
    End Sub

    Of course you should edit the column references to suit your need and make sure you are in the sheet where you need the replacement when you run the macro

    If you attach the spreadhseet, I can run it for you
    Last edited by wakeupcall; 05-21-2012 at 12:11 PM. Reason: spelling mistake

+ 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