+ Reply to Thread
Results 1 to 3 of 3

Macro to Add Spaces to End of Each Cell Value

  1. #1
    Registered User
    Join Date
    06-11-2011
    Location
    Carrboro, NC
    MS-Off Ver
    Excel 2010
    Posts
    32

    Exclamation Macro to Add Spaces to End of Each Cell Value

    I'd like to add two spaces to the end of each cell in a range, starting from A1 and going through column D (until last row). I know how to do this using formulas (=CONCATENATE(A1," ")), but I'd like a macro that will just instantly change all the values and keep them in the same cells (as values instead of formulas). Any ideas on how to do this?

    Example:

    Cell A1: "John"
    Cell A1 after macro: "John "

    Thanks!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Macro to Add Spaces to End of Each Cell Value

    Select the range in question...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  3. #3
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Macro to Add Spaces to End of Each Cell Value

    Please Login or Register  to view this content.
    Edit - Noticed typo
    Last edited by GeneralDisarray; 05-05-2012 at 12:54 PM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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