+ Reply to Thread
Results 1 to 3 of 3

VBA Code to remove square brackets and the data contained in them.

  1. #1
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Red face VBA Code to remove square brackets and the data contained in them.

    Hi all,

    I a piece of VBA to remove square brackets and the data within it in excel:

    Here's an example of what my sheet currently looks like against how i want it to look.

    1.png

    Thanks,
    Liam

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: VBA Code to remove square brackets and the data contained in them.

    You could do this with Find ([*]) and Replace (leave box blank). Or with VBA
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: VBA Code to remove square brackets and the data contained in them.

    Thanks, nice & simple

+ 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] Remove part of a string that is within square brackets
    By strud in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2015, 09:07 AM
  2. [SOLVED] How to extract the last part of the column that appears in square brackets
    By yapema in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2012, 07:32 AM
  3. use of square brackets in vba excel 2003
    By mattsgame in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-08-2010, 06:06 PM
  4. Replies: 0
    Last Post: 08-01-2006, 05:05 AM
  5. [SOLVED] how do I automatically put square brackets around field name...
    By publisher 2003 user in forum Excel General
    Replies: 5
    Last Post: 02-24-2006, 11:00 AM
  6. [SOLVED] Bug? Square brackets in file name confuses sheet renames
    By Rob van Gelder in forum Excel General
    Replies: 10
    Last Post: 03-20-2005, 04:06 PM
  7. [SOLVED] Custom format a text cell with square brackets: [ ] ?
    By StargateFan in forum Excel General
    Replies: 2
    Last Post: 02-06-2005, 12:06 PM

Tags for this Thread

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