microsoft+access+courses+in+london - exporting excel

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access Training and help » microsoft+access+courses+in+london - Exporting to Excel

microsoft+access+courses+in+london - Exporting to Excel

resolvedResolved · Low Priority · Version Standard

Edwin has attended:
Access Intermediate course
Access Advanced course
Access VBA course

Exporting to Excel

Is there a VBA Code that will allow me to Export a table into Excel byu clicking on a button (or Event), instead of going through the toobar and manually exporting it?

RE: Exporting to Excel

Hi Edwin,

It is possible to automate the export of a form to Excel by clicking on a button.

1. Create a macro object and set the Action column to "OutputTo"
2. In the Action Arguments, select the following...

Output File = Table
Object Name = "choose name of table"
OutputFormat = "choose Microsoft Excel version"
Outputfile = "leave blank to be prompted or specify the file path of the output excel your require"
AutoStart = "Yes if you want the Excel program to launch, No if you wish to lauch Excel yourself"

Save the macro

3. Create a form based on the table and add to the form a command button. Assign to the command button the above macro

Regrds


 

Access tip:

Switchboard Startup

An option when you open your Access database that contains all of you tables, forms and queries is only the switchboard is displayed.

To achieve this, select Tools click on Startup. On the right hand side of the Startup screen you are able to select which form you want to open when you open you Access Database. Once you have selected this, there is a check box just below that says "Display Database Window", you need to uncheck this option. Then click ok.

Then when you close you Access database and re open it, the database should open with just the switchboard being shown


View all Access hints and tips


Server loaded in 0.08 secs.