Closed Thread
Results 1 to 3 of 3

How do I find "?" character in a column using VBA?

  1. #1
    Raju
    Guest

    How do I find "?" character in a column using VBA?

    I have some numerical data in a excel worksheet which is downloaded from
    another application. By mistake in some of the fields some non numberical
    characters(Ex: "?") are entered. I want to eliminate "?" character using VBA.
    Please help.

  2. #2
    Bob Phillips
    Guest

    Re: How do I find "?" character in a column using VBA?

    Columns("E:E").Replace What:="~?", _
    Replacement:="", _
    LookAt:=xlPart, _
    SearchOrder:=xlByRows, _
    MatchCase:=False, _
    SearchFormat:=False, _
    ReplaceFormat:=False


    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Raju" <[email protected]> wrote in message
    news:[email protected]...
    > I have some numerical data in a excel worksheet which is downloaded from
    > another application. By mistake in some of the fields some non numberical
    > characters(Ex: "?") are entered. I want to eliminate "?" character using

    VBA.
    > Please help.




  3. #3
    Norman Jones
    Guest

    Re: How do I find "?" character in a column using VBA?

    Hi Raju,

    Try:

    '=============>>
    Public Sub Tester()
    Dim rng As Range

    Set rng = ActiveSheet.UsedRange '<<==== CHANGE

    rng.Replace What:="~?", _
    Replacement:="", _
    LookAt:=xlPart, _
    SearchOrder:=xlByRows, _
    MatchCase:=False

    End Sub
    '<<=============


    ---
    Regards,
    Norman


    "Raju" <[email protected]> wrote in message
    news:[email protected]...
    >I have some numerical data in a excel worksheet which is downloaded from
    > another application. By mistake in some of the fields some non numberical
    > characters(Ex: "?") are entered. I want to eliminate "?" character using
    > VBA.
    > Please help.




Closed 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