+ Reply to Thread
Results 1 to 2 of 2

Retaining leading & trailing zeros

  1. #1
    Registered User
    Join Date
    11-23-2004
    Posts
    1

    Unhappy Retaining leading & trailing zeros

    I have leading and trailing zeros in my Access 2K MDB file and am exporting it to Excel. Is there a way to program the export to Excel from an Access 2K database so that the format automatically retains the leading and trailing zeros without having to format it manually in Excel. There is a export function made for exporting to Excel automatically and when the file is retrieved, the formatting is gone. I would like to retrieve the Excel file with the formatting in tact. Thank you.

  2. #2
    Registered User
    Join Date
    10-12-2003
    Posts
    34
    would a macro work for you that selects columns in xl an applies the custom format immediately after extracting the data from Access?

    If so call the macro at the end of your Extract procedure.


    I assume from your msg when you said you can do it manually, that you know how to custom format ranges of cells. Turn on the recorder and do it to get you started with the code for the above macro.
    Paul

+ 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