Results 1 to 6 of 6

.Value Not Capturing Leading Zero

Threaded View

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    44

    .Value Not Capturing Leading Zero

    Hi All,

    I am attempting to do the following.

    Range("A1").value = "050" this returns a result of 50.

    I then try Range("A1").value=Cstr("050") again this returns a result of 50.

    How can I keep the leading zeroes?
    Last edited by Excel Guy 123; 09-12-2014 at 08:20 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Capturing SQL return.....
    By swoop99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2013, 11:06 AM
  2. Capturing a temporary value
    By metalrat in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-21-2010, 07:28 PM
  3. Capturing Data
    By mikello in forum Excel General
    Replies: 2
    Last Post: 10-22-2009, 05:13 AM
  4. Capturing Keys
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-19-2009, 08:38 AM
  5. capturing row delete
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2008, 11:10 PM

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