+ Reply to Thread
Results 1 to 4 of 4

Delete data inside a cell in between two signs

  1. #1
    Registered User
    Join Date
    11-06-2014
    Location
    old greenwhich, NY
    MS-Off Ver
    2010
    Posts
    4

    Delete data inside a cell in between two signs

    Hey Guys,

    Need some help with a VBA code. All the methods i've been using aren't working out to well. Can someone make a script that looks into every cell of a workbook and deletes the information between " ' " and " ] " and including the " ] ". Let me know if this is possible.

    Problem stems from a file path that needs to be deleted but the formula to stay intact within a cell.

    Thanks,

  2. #2
    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
    53,048

    Re: Delete data inside a cell in between two signs

    If the file path is the same in all cases (or you only have a few different file name/paths), you could probably do this with a few steps using Find/Replace
    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

  3. #3
    Registered User
    Join Date
    11-06-2014
    Location
    old greenwhich, NY
    MS-Off Ver
    2010
    Posts
    4

    Re: Delete data inside a cell in between two signs

    Yep, that's my current process, but was looking to click a button and have it all done automatically. I tried a code to list the file paths on a new sheet then find and replace automatically but the list left out the brackets " [ " " ] " so didn't end up finding the others.

  4. #4
    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
    53,048

    Re: Delete data inside a cell in between two signs

    You would need to include all the text/name/path that you want to replace/remove

+ 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] delete equal signs only in db
    By ddevins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2014, 02:00 PM
  2. Code which deletes all signs behind a number of signs
    By Mula in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2009, 05:53 AM
  3. Sort Column, Delete Rows, Delete Column, Move Molumn, more inside?
    By motown in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-13-2008, 09:44 AM
  4. how to delete specific signs or letter in the beginning of a column?
    By wali in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-12-2007, 06:22 AM
  5. Delete Row when value inside cell is less than 0
    By bm4466 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2006, 01:04 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