+ Reply to Thread
Results 1 to 3 of 3

Macro to import data from access to excel 2007

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 365
    Posts
    79

    Macro to import data from access to excel 2007

    I have tried the code below to import data from access to excel 2007. I get an error in the line. I want the data to be copied to Sheet1. Please help.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Moderator's Note: As per Forum Rule #3, please use code tags…Thanks.
    Last edited by jeffreybrown; 11-24-2012 at 11:19 PM.

  2. #2
    Registered User
    Join Date
    09-30-2012
    Location
    Perth, Australia
    MS-Off Ver
    MSO all versions to 2007
    Posts
    30

    Re: Macro to import data from access to excel 2007

    Why not just use the "Get External Data" wizard in the Data RMenu ribbon?

    Just select the "From Access" icon and Bob's your Aunty.....



    Muzza68

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Macro to import data from access to excel 2007

    Try removing the extra Sheets("Sheet1").Range ("a1") highlighted in red.

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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