+ Reply to Thread
Results 1 to 5 of 5

Create folders macro - with trailing zeros

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    california
    MS-Off Ver
    Excel 2010
    Posts
    27

    Create folders macro - with trailing zeros

    Hi,

    I am trying to use a macro to create folders in a directory. This macro works fine, but the folders I need to create contain trailing zeros, example:

    00001.002345 - John Doe
    00002.003456 - Jane Doe
    00003.004567 - John Smith
    00004.005678 - Jane Smith

    I am able to keep the zeros in place in excel using custom: 00000.000000, but I need to concat the 00000.00000 with the name, (=a1 & " - " & b1).

    Here is the code, any suggestions?

    Please Login or Register  to view this content.
    Crossposted at: http://www.mrexcel.com/forum/excel-q...ml#post3747762
    Last edited by mwilkes; 03-14-2014 at 08:10 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Create folders macro - with trailing zeros

    Where are the numbers stored? Where are the names?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-08-2013
    Location
    california
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Create folders macro - with trailing zeros

    numbers are a1 names are b1, trying to concatenate both to c1. Tried playing with =text but no-go. I really can't concat as b1 & a1.

    A1 B1 C1
    "00001.002345" "John Doe" "00001.002345 - John Doe"

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Create folders macro - with trailing zeros

    Maybe

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    california
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Create folders macro - with trailing zeros

    Oh I see what you did there. I'm gonna give this a go, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Keep trailing zeros, but only if they're there...
    By rbrian in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 12-02-2013, 10:47 AM
  2. [SOLVED] Add Trailing Zeros
    By sweetkel23 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-07-2012, 01:42 AM
  3. Replies: 5
    Last Post: 04-09-2012, 02:28 PM
  4. Remove trailing zeros
    By Garren1013 in forum Excel General
    Replies: 10
    Last Post: 02-21-2011, 05:08 PM
  5. trailing zeros
    By htorres in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-23-2007, 03:00 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