Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

TransferSpreadsheet

Discussion in 'Information Technology' started by hughess7, Jul 28, 2006.

  1. hughess7

    hughess7
    Expand Collapse
    Guest

    Hi all

    I have used TransferSpreadsheet in VBA to export data from a query to Excel.
    The cells are formatted to two decimal places with format([field],"fixed")
    but Excel treats the data as text and therefore the alignment is incorrect.
    Is there a way to make the data numeric so it lines up via the decimal point
    without having to amend the spreadsheet manually after creation?

    Thanks in advance for any help.
    Sue
     
  2. hughess7

    hughess7
    Expand Collapse
    Guest

    For reference, it works if I do Tools, Analyse with Excel - formatting is
    retained but I wanted to do it via transferspreadsheet so I can specify the
    location and filename to save it to. The filename includes a dealer code
    relevant to the current dealer at the time the report is run.

    Thanks in advance for any help.
    Sue


    "hughess7" wrote:

    > Hi all
    >
    > I have used TransferSpreadsheet in VBA to export data from a query to Excel.
    > The cells are formatted to two decimal places with format([field],"fixed")
    > but Excel treats the data as text and therefore the alignment is incorrect.
    > Is there a way to make the data numeric so it lines up via the decimal point
    > without having to amend the spreadsheet manually after creation?
    >
    > Thanks in advance for any help.
    > Sue
     

Share This Page