+ Reply to Thread
Results 1 to 3 of 3

Inserting 0 into file name

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    13

    Question Inserting 0 into file name

    Hello,

    Currently i am trying to export files row by row into a text file. This is working, but i am having problems with the file name of the textfile.

    I am trying to insert a "0" into the filename. This is the only number that doesnt work.

    Here is the layout of my sheet:

    A B
    S110015-0001 1
    S110015-0001 2

    I am trying to get my filename as following:
    S110015-0001-01.txt
    S110015-0001-02.txt ect.

    Please Login or Register  to view this content.

    Hope you can give me some pointers.

    Thanks,
    Sebas123
    Last edited by Sebas123; 08-17-2011 at 07:35 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Inserting 0 into file name

    Hi,

    Dim your part2 as a String

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-09-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Inserting 0 into file name

    haha it worked

    Sometimes it are the simple things!

    thx for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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