+ Reply to Thread
Results 1 to 2 of 2

How do i keep Leading zeros in .CSV file saved as from .xls file

  1. #1
    Vikas
    Guest

    How do i keep Leading zeros in .CSV file saved as from .xls file

    I am using VBA for saving one worksheet as .csv file format from a Excel
    workbook .One of the columns in that contains values as 00033 and so on.When
    my save as statement in vba code executes then i lost the leading zeroes from
    that column and finally get only 33 . Is there any way by which i can keep
    leading zeroes in that perticuler column.

  2. #2
    Niek Otten
    Guest

    Re: How do i keep Leading zeros in .CSV file saved as from .xls file

    Rename the file a .TXT file and then import. Excel will give you options to choose between Date, text, number, etc.

    --
    Kind regards,

    Niek Otten

    "Vikas" <Vikas@discussions.microsoft.com> wrote in message news:34637E0D-4834-4774-9BFC-513388F04B0F@microsoft.com...
    >I am using VBA for saving one worksheet as .csv file format from a Excel
    > workbook .One of the columns in that contains values as 00033 and so on.When
    > my save as statement in vba code executes then i lost the leading zeroes from
    > that column and finally get only 33 . Is there any way by which i can keep
    > leading zeroes in that perticuler column.




+ 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