+ Reply to Thread
Results 1 to 4 of 4

Command button to Export data from Access in to Excel

  1. #1
    Forum Contributor
    Join Date
    09-21-2015
    Location
    nederland
    MS-Off Ver
    2021
    Posts
    203

    Command button to Export data from Access in to Excel

    Dear All,

    How to make 3 command buttons into 1 command button ( see below the VBA I use)
    I would like to have one command button instead of 3
    When finished appears MsgBox ("CustomerorderJKT, CustomerorderDPS, CustomerorderBD has been successfully exported")
    I use below VBA

    Thank you in advance


    Please Login or Register  to view this content.
    Last edited by kirana2014; 07-11-2021 at 12:51 AM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Command button to Export data from Access in to Excel

    Hi there,

    I haven't tested this fully (no data export performed), but see if the following code does what you need:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    09-21-2015
    Location
    nederland
    MS-Off Ver
    2021
    Posts
    203

    Re: Command button to Export data from Access in to Excel

    Dear Greg,

    Is working

    Thank you!

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Command button to Export data from Access in to Excel

    Hi again,

    Many thanks for your feedback.

    You're welcome - glad I was able to help.

    Regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. run command button in Access from excel
    By jkw603 in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2015, 09:28 AM
  2. Run Access command button macro from excel
    By jkw603 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2015, 11:00 AM
  3. [SOLVED] Filter and Export Data to CSV Text File With Userform Command Button
    By omagoodness in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2015, 11:18 AM
  4. command button that will send information from excel spread sheet to access
    By superchew in forum Access Tables & Databases
    Replies: 5
    Last Post: 12-16-2013, 11:45 PM
  5. Excel Command button to open a Microsoft Access query
    By Bineyo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2012, 04:31 PM
  6. opening a form with a command button on a data access page
    By kristin31 in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2011, 11:08 PM
  7. [SOLVED] Printing Access reports through Excel command button?
    By Ed in forum Excel General
    Replies: 0
    Last Post: 06-07-2006, 10:55 AM

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