+ Reply to Thread
Results 1 to 10 of 10

Make a backward message by reversing the entire order of values in cell?

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Make a backward message by reversing the entire order of values in cell?

    This is a useless whimsical concept. For those still reading: Would it be possible to create a macro that would reverse the order of the string values inside a cell?

    For example if cell "A1" contained: "A backwards message." then running this macro would cause the cell value to change to: ".egassem sdrawkcab A".

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Make a backward message by reversing the entire order of values in cell?

    Hi

    Have fun

    Please Login or Register  to view this content.
    rylo

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

    Re: Make a backward message by reversing the entire order of values in cell?

    StrReverse function should do what you are after.
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Make a backward message by reversing the entire order of values in cell?

    Quote Originally Posted by jindon View Post
    StrReverse function should do what you are after.
    Please Login or Register  to view this content.
    But wont I have to hard code the string inside VBA?

  5. #5
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Make a backward message by reversing the entire order of values in cell?

    Thank you rylo!

    (I use Option Explicit in my modules so I had to add the following lines to your code:
    Please Login or Register  to view this content.
    )

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

    Re: Make a backward message by reversing the entire order of values in cell?

    Not at all.

    You can reference cells or variable or what ever you want.
    e.g
    Range("a1").Value
    ActiveCell.Value
    etc.
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Make a backward message by reversing the entire order of values in cell?

    Quote Originally Posted by jindon View Post
    Not at all.

    You can reference cells or variable or what ever you want.
    e.g
    Range("a1").Value
    ActiveCell.Value
    etc.
    Please Login or Register  to view this content.
    Sorry Jindon. I wasn't thinking. You are right. Thanks for the help.

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Make a backward message by reversing the entire order of values in cell?

    Or with this

    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

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

    Re: Make a backward message by reversing the entire order of values in cell?

    Quote Originally Posted by mc84excel View Post
    Sorry Jindon. I wasn't thinking. You are right. Thanks for the help.
    No problem.

    If you want toggle. just change to
    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Make a backward message by reversing the entire order of values in cell?

    Thank you all for your assistance in solving this thread.

    I am pleasantly surprised at the amount of help received for something that is of no practical use. If you enjoyed this whimsical vba challenge and are interested in another, check out: http://www.excelforum.com/excel-prog...on-ribbon.html

+ 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