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

excel access data exchange

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Excel to Access Data Exchange

Excel to Access Data Exchange

ResolvedVersion 2003

Craig has attended:
Excel VBA Advanced course
Access VBA course

Excel to Access Data Exchange

What is the easiest was to move data from an excel spreadsheet to Access.

Currently I am moving cell by cell to field by field, by indivitual rows.

Is there away of a row of data in excel to a row in access.

If you need to see the original code I am using then please email me at craig.edwards77@hotmail.co.uk

Kind regards,
Craig

RE: Excel to Access Data Exchange

Hi Craig, thanks for your query. There's a much easier way of doing this than via code. Simply use the Get External Data function in Access to link to the spreadsheet. The spreadsheet will then be dynamically linked and exactly mirrored in Access.

Hope this helps,

Anthony

RE: Excel to Access Data Exchange

Hi,

The spreadsheet is used by multiple users, when trying to do the above it couldn't cope with all the changes and the spreadsheet is read only because again Excel has the issue with the shared workbook option.

I guess it's the age old thing, if it aint broken then don't try and fix it, justy wanted to write all the information in one go rather than cell by cell to speed up the process.

Kind regards,
Craig

RE: Excel to Access Data Exchange

Hi Craig, you still have to write cell by cell but have you considered copying the data from the worksheet into an array:

Dim myarray as variant

myarray = Range("A1").currentregion

...then looping through the array and sending each value to the Access table? That will certainly be quicker!

Anthony

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Status Bar Functions

When using the SUM, MIN, MAX, AVERAGE and COUNT functions, the result of such calculations are displayed in the worksheet.

However, if a range of cells, containing numbers, is highlighted, and then a right-mouse click is performed at the bottom right side of the status bar, then the result of those functions will be displayed.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.