+ Reply to Thread
Results 1 to 3 of 3

Find and Replace using VBA

  1. #1
    Registered User
    Join Date
    11-19-2018
    Location
    Houston
    MS-Off Ver
    1810
    Posts
    58

    Find and Replace using VBA

    Hey guys, I'm trying to find an automatic way of finding a replacing a certain character from 2 columns. My excel template is extracted from a program I use, and this program ends up adding a "+" or "-" in front of its values.

    I know I can hit Ctrl+H find and replace to remove it, but I was hoping there was a way for it to be done once the data is extracted automatically.

    Ranges from E8:E94 and F8:F94, find and replace + or - with nothing. Any ideas?

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    As VBA use the same Excel Find & Replace way so just activate the Macro Recorder and operate manually :
    you will get your own free base of code ! …

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find and Replace using VBA

    Agree with Marc. With something this simple, you could use the macro recorder to get what you want.

    Activate the recorder, go through all teh steps that you manually do - the recorder will record every step you do. Save the code, create a small button, attach the VBA to that, and you should be good to go.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 1
    Last Post: 02-27-2018, 11:22 AM
  2. [SOLVED] Using find replace to first find two double quotes and replace with a single double quote
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2015, 10:13 AM
  3. [SOLVED] Find and replace where contents a formula so can't be seen by Find and replace.
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2015, 02:24 PM
  4. Replies: 16
    Last Post: 12-02-2014, 03:38 PM
  5. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  6. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM
  7. [SOLVED] find and replace - replace data in rows to separated by commas
    By msdker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2006, 08:10 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