+ Reply to Thread
Results 1 to 4 of 4

How to change cells in Selection to values

  1. #1
    Registered User
    Join Date
    09-16-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    52

    How to change cells in Selection to values

    I changed the formula into value with the first codes below. This code, however, has some limitation. The value of the selected cells which starts with 0, for example, 0022111, will be turned into 22111 with this code. So I came up with the second one. What would you do if it were you?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by alexxgalaxy; 09-17-2011 at 09:48 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to change cells in Selection to values

    Maybe
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-16-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: How to change cells in Selection to values

    Quote Originally Posted by royUK View Post
    Maybe

    Thanks Roy but there is still limitation. The codes above can handle the example "0022111" I quoted but the real life case is there is no fix length for the value of every cells in selection. It could take six spaces as it did in my example but it could also take ten or even more.
    Last edited by alexxgalaxy; 09-17-2011 at 08:04 PM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to change cells in Selection to values

    Please don't quote whole posts. You didn't say that the the values were varying lengths

+ 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