+ Reply to Thread
Results 1 to 3 of 3

Macro to delete last 2 characters in a cell

  1. #1
    Registered User
    Join Date
    01-14-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macro to delete last 2 characters in a cell

    Can someone let me know what syntax I need to edit in the code above to remove the last 2 characters in a selected cell? The code is taken from the thread referenced below which has worked perfectly for removing the first 2 characters in a selected cell range.

    http://www.excelforum.com/excel-prog...in-a-cell.html

    Please Login or Register  to view this content.
    Thanks in advance for any help.

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

    Re: Macro to delete last 2 characters in a cell

    Try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-14-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro to delete last 2 characters in a cell

    It worked beautifully, thank you very much. This saved me a lot of time and frustration!

    ps- I also see where the code can be adjusted to delete more or even less characters from the cell.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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