+ Reply to Thread
Results 1 to 2 of 2

Retaining leading zero in macro

  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:

    Please Login or Register  to view this content.
    Last edited by ChrisMattock; 02-19-2010 at 03:21 PM.

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

    Re: Retaining leading zero in macro

    I am definately going to stop bothering you guys soon, whenever I ask a question I have been trying to solve I find the answer two minutes later. This time (in case anyone cares) I changed the cell format to "text" and the variable from an integer to a string. Simple. Just like me.

+ 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