+ Reply to Thread
Results 1 to 11 of 11

Macro that removes word based on characters in cell

  1. #1
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Macro that removes word based on characters in cell

    Hello All. Could someone show me a macro that will remove the word "CRISP" from all cells that have over 25 characters in Row A. If the cell has 25 characters or less than then it does nothing. A space would be considered a character.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro that removes word based on characters in cell

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro that removes word based on characters in cell

    Helps?
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Macro that removes word based on characters in cell

    How would the below macro look If I wanted it to function like so. Remove all cell contents and replace with "Hello my name is" if the character count is over 25?

    Please Login or Register  to view this content.
    Last edited by wonderd; 02-19-2015 at 06:31 PM.

  5. #5
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Macro that removes word based on characters in cell

    Bump. Sorry marked the thread as unsolved. Have a similar question.

  6. #6
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro that removes word based on characters in cell

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro that removes word based on characters in cell

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Macro that removes word based on characters in cell

    Actually I am not looking to use the word CRISP at all. The function should just be if any cells in row A has over 25 characters then delete all content in the cell and replace the cell content to "Hello my name is"
    Last edited by wonderd; 02-19-2015 at 07:59 PM.

  9. #9
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Macro that removes word based on characters in cell

    So instead of replace the word CHRISP. It would replace all content in the cell with over 25 characters with with "Hello my name is" I am trying to figure out how to do it with the code below but can not figure it out.

    Please Login or Register  to view this content.

  10. #10
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro that removes word based on characters in cell

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Macro that removes word based on characters in cell

    I appreciate the help but not the sarcasm. My initial post was right but I did not want to create another thread for a similar question...I needed both macros. I guess I wont try to be so friendly next time, maybe that was my mistake.

+ 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] Left Formula which removes unnecessary characters and will display content if only one
    By arodgers in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2013, 09:14 PM
  2. [SOLVED] Macro that removes rows based on frequency and copies part of the row to a new sheet
    By njmiller31 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-28-2012, 05:32 PM
  3. Macro that removes the protection password from word docs?
    By tshrader in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2012, 09:38 AM
  4. Deleting cells based on number of characters in a word
    By donaldc88 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-07-2012, 09:48 PM
  5. Macro that removes cariable before set characters
    By Tim A in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2012, 09:25 AM

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