Results 1 to 4 of 4

Find and replace asterisk

Threaded View

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    bombay
    MS-Off Ver
    Excel 2003
    Posts
    10

    Find and replace asterisk

    Hi

    I have a set of data in which asterisk is used as a separator. Asterisk being a wildcard character hinders with my search operation. I used the following code to replace the * with | as the separator.


    Cells.Replace What:="~*", Replacement:="|", LookAt:=xlPart, SearchOrder _
            :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
    When I run the code, it replaces all the asterisks in the sheet. I want to restrict the find and replace operation to a particular column (say B:B) / range (say A1:C10) alone. Is it possible to do that?
    Last edited by indimonk; 01-31-2012 at 05:26 AM. Reason: Marked as solved

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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