Results 1 to 2 of 2
  1. #1
    dcoley is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    7

    Export to Excel with Filter Options

    Hi. I'm new here to please bear with me. I have an access macro that exports four separate queries to one excel workbook. One of the queries is a year to date (YTD) query. My user needs to see the current year to date in the excel spreadsheet, BUT they also need the option to select a previous year at any given time. My initial thought was to export ALL data with a year column and just let them filter the database by year. If I do this, however, I would like for the Excel spreadsheet to already have that year column have the filter option turned on. The ideal situation would be for there to be a link to each year (depending on the data present) and when clicked that link will filter the spreadsheet for that year only.



    Any thoughts and suggestions are greatly appreciated!!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Have you considered setting the data link on the Excel side?

    Otherwise, would have to open the Excel as a VBA object and manipulate the worksheet settings.

    Why Excel and not just view data in Access form or report?
    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. Excel Export
    By drunkenneo in forum Programming
    Replies: 1
    Last Post: 07-11-2013, 07:46 AM
  2. Replies: 7
    Last Post: 04-25-2013, 03:47 PM
  3. VBA code multiple export to xml with filter
    By Bertrand82 in forum Programming
    Replies: 9
    Last Post: 01-15-2013, 03:55 AM
  4. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  5. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 AM

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