+ Reply to Thread
Results 1 to 1 of 1

VBA to truncate the data in field

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VBA to truncate the data in field

    Hi:

    I need VBA Macro to perform the below task.

    Please refer to attached sheet.
    Refer to column D.
    What i want to do is truncate the field in column D as follows:

    Delete all characters that starts with numerical number, #, & *
    Example:

    OFFICE DEPOT #1079 truncate to OFFICE DEPOT
    AMERICAN AI 0010640314695 truncate to AMERICAN AI
    HI *WINECNTRYGIFTBSKT truncate to HI
    MCDONALD'S M7767 truncate to MCDONALD'S ( Here it is important that result I get is MCDONALD'S and not MCDONALD'S M)

    Please help achieve this..

    Let me know if you have any questions.

    Thanks and help is always appreciated.

    Riz
    Attached Files Attached Files

+ 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