+ Reply to Thread
Results 1 to 3 of 3

VBA To Cleanup Text

  1. #1
    Registered User
    Join Date
    10-21-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    94

    VBA To Cleanup Text

    Hello

    Can you suggest a vba to clean up text like this:

    Please Login or Register  to view this content.
    So the end result is
    Please Login or Register  to view this content.
    and text like this

    Please Login or Register  to view this content.
    ends up as

    Please Login or Register  to view this content.

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA To Cleanup Text

    Do you really need a macro?

    A formula like

    =--IF(A1="Free Shipping",0,SUBSTITUTE(A1,"Shipping: US $",""))

    will produce the number, just format the cell to show 2 dec places and the $ currency.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-21-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    94

    Re: VBA To Cleanup Text

    Thanks - unfortunately the data is being imported some will need to apply vba on the new data.

+ 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. [SOLVED] Automate 7-Step Data Cleanup Process (i.e., text delimit; re-align data into 1 column, ++)
    By skydivetom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2021, 03:58 PM
  2. Can't cleanup mail due to added text
    By jomili in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2018, 04:00 PM
  3. [SOLVED] Improving text to column code to use a TRIM to cleanup further the results
    By PaulM100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2018, 03:15 AM
  4. VB Code to cleanup Wrap Text
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-23-2017, 07:17 AM
  5. VBA cleanup
    By paul_j_ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2015, 06:21 AM
  6. Cleanup telephone numbers that have some text data
    By djarcadian in forum Excel General
    Replies: 4
    Last Post: 08-19-2014, 08:03 AM
  7. Text Import Wizard Cleanup
    By jenmears in forum Excel General
    Replies: 2
    Last Post: 06-11-2013, 06:39 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