+ Reply to Thread
Results 1 to 4 of 4

Copy and Paste Excel Table to Access

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    24

    Copy and Paste Excel Table to Access

    Hi

    I have a reasonably large excel table which I can easily select and copy and then paste directly into Access - it create a new table using the column headings as the field names. This works very efficiently.

    But how can I do that with VBA?

    I have tried various ways such as looping through each row on the excel table, creating a new record in the access table and then updating each field. I have also tried transfer spreadhseet in Access. And I've tried loading the excel table into an array and then updating the access table from each row and column. None of these are as efficient as the simple copy and paste. But I can't see how to do that with VBA.

    Can it be done?

    Apologies if I should post this to an Access forum?

    Thanks

    Max

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Copy and Paste Excel Table to Access

    Have you considered linking your Excel Table to Access?

    https://www.youtube.com/watch?v=oiLMfKyavEU
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Copy and Paste Excel Table to Access

    Works a treat. Hadn't thought of that and after a little playing around with it seems to be just what I need.

    Thank you

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Copy and Paste Excel Table to Access

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Copy from excel paste to access box
    By kieranm105 in forum Access Tables & Databases
    Replies: 6
    Last Post: 01-03-2019, 11:50 AM
  2. [SOLVED] Macro to copy Access table into excel
    By ownjoouk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2015, 10:01 AM
  3. Need Access macro to copy data from one table and paste into another.
    By wes675 in forum Access Tables & Databases
    Replies: 2
    Last Post: 01-21-2014, 02:18 PM
  4. Copy table from access to excel
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-02-2014, 12:28 PM
  5. Copy and Paste Error From Access to Excel
    By google2155 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2013, 03:24 PM
  6. Copy/Paste Excel data into Access
    By jay567 in forum Access Tables & Databases
    Replies: 6
    Last Post: 12-07-2011, 01:40 AM
  7. Copy from Excel to Access, delete data from DB before paste.
    By jasocke2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2009, 06:37 AM

Tags for this Thread

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