Results 1 to 2 of 2

Retaining leading zero in macro

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Retaining leading zero in macro

    All, I have a cell in my workbook that contains the number 8, though due to the formatting on that cell it appears as "008", as it should. However when I try and use that number in my macro it becomes "8" again, is there a way of retaining the leading zero's?

    I tried:

    CCD = Format(Cells(3, 2), "000")
    Last edited by ChrisMattock; 02-19-2010 at 03:21 PM.

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