Results 1 to 2 of 2
  1. #1
    Jo.. is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    32

    How to compress picture when exporting to Excel

    Hi there,



    I am wondering how to use application.commandbars function from access. When exporting to excel I also export the images. The images could be too large for excel.

    How to convert the below code from excel to access vba code?
    Application.CommandBars.ExecuteMso "PicturesCompress"

    Thank you
    Jo

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    It is apparently the same command, at least through ExecuteMso. No idea if "PicturesCompress" will work. I tested and it errors in the Immediate window.
    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. copy OLEUnbound picture on form to excel worksheet
    By trevor40 in forum Programming
    Replies: 2
    Last Post: 02-17-2015, 07:19 PM
  2. Compress On Exit
    By Derrick T. Davidson in forum Access
    Replies: 5
    Last Post: 07-31-2014, 09:40 PM
  3. Replies: 10
    Last Post: 12-28-2012, 02:06 PM
  4. Exporting to Excel Help
    By Coffee in forum Import/Export Data
    Replies: 4
    Last Post: 07-18-2011, 07:37 AM
  5. any way to schedule a compress/repaor task?
    By Coolpapabell in forum Access
    Replies: 7
    Last Post: 10-07-2009, 02:08 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