+ Reply to Thread
Results 1 to 2 of 2

VBA to Format Exported Excel Data

  1. #1
    Forum Contributor
    Join Date
    11-20-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2010
    Posts
    284

    VBA to Format Exported Excel Data

    I have the following do cmd code that will export my query to an excel file. I am trying to edit the format of the file within the code itself. How would I be able to do that?Thanks

    DoCmd.OutputTo acQuery, "Investor_Request_Query", "MicrosoftExcel 97-10(*.xls)", "C:\Investor Request Report.xls", True, ""

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: VBA to Format Exported Excel Data

    What do you want the file format to be? Have you considered TransferText or TransferSpreadsheet as a DoCmd?

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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