Results 1 to 6 of 6
  1. #1
    mkc80 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    56

    DoCmd.OutputTo question


    Can you specify a sheet name in the DoCmd.OutputTo command when trying to export multiple reports to multiple sheets in the same excel file?
    If yes, what is the syntax?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    No, cannot. Nor does DoCmd.TransferSpreadsheet allow that.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mkc80 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    56
    Sorry, my question was, Can I direct output from multiple reports to multiple sheets in a Excel workbook?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Still, no. Each output will be to a new file.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    zane is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    1
    Quote Originally Posted by June7 View Post
    Still, no. Each output will be to a new file.
    uummmm, still YES. mkc80....use teh docmd.transferspreadsheet option. Create ranges in Excel (ie in the different spreadsheets you want to output to) and the data will be exported to those ranges.

    super moderator???
    pffff

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I didn't pick the title 'Super Moderator' (suppose I could change it) - it was given to me along with permissions to manage all threads on forum. Title doesn't mean I know everything. I still learn a lot here everyday.

    Think I learned about using named ranges sometime after this thread posting and tested but didn't go well.

    Also, OP wants to export report, not table or query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 10-13-2011, 09:14 AM
  2. DoCmd. Question
    By Trojnfn in forum Access
    Replies: 4
    Last Post: 09-30-2011, 04:51 PM
  3. DoCmd.OutputTo not working
    By arunkumar213 in forum Access
    Replies: 1
    Last Post: 09-08-2011, 10:41 PM
  4. AcFormat in DoCmd.OutputTo
    By SIGMA248 in forum Programming
    Replies: 1
    Last Post: 04-15-2011, 08:50 AM
  5. DoCmd.SendObject Question
    By HunterEngineeringCoop in forum Programming
    Replies: 3
    Last Post: 10-04-2010, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums