vba code for using excel convert to access data option

smi123

Board Regular
Joined
Nov 7, 2005
Messages
67
Hi

Need vba code to create an access file exactly as if I was using the Data Convert to access option.

Have hunted around and can not see exactly what I am after.

Unfortunately I have to have this code as the data is imported into another program that can not be changed, and requires the data to be in access format (I have no control over the receiving program).

Any suggestions would be greatly appreciated.
:)
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,344
Office Version
  1. 365
Platform
  1. Windows
What do you mean by 'access format'?

As far as I know there is no such thing.
 

smi123

Board Regular
Joined
Nov 7, 2005
Messages
67
Microsoft Access.

In Excel you can add in Access Links thorugh Tools and Add ins

Then.. under the data menu item three access utilities will appear.
MS Access form, MS Access Report and Convert to MS Access

What I am after is the VBA code that will enable me to automate the Convert to MS Access utility process.

The end result access data file is picked up nightly by another program that I have no control over.

This is the last part of another project (had posted another question previously where the answer enabled me to finish a previous project!) and am hoping that I can finish this one off too.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,994
Messages
5,834,773
Members
430,320
Latest member
Napzz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top