+ Reply to Thread
Results 1 to 4 of 4

Export Access to Excel Error

  1. #1
    Registered User
    Join Date
    10-05-2017
    Location
    Flagstaff, AZ
    MS-Off Ver
    2013
    Posts
    8

    Export Access to Excel Error

    Hello,

    I have a super simple problem that I just can't figure out. I want to export data from an Access table to an Excel spreadsheet. I'm still pretty new to VBA, and I just can't figure out what I'm doing wrong here....

    Here is the code I have written:

    Please Login or Register  to view this content.
    However, I am getting an error that states "Compile Error: Object Required."

    Can anybody shed some light on this?

    Thanks!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Export Access to Excel Error

    Hi Forest,

    I'd bet you don't have a folder on your hard drive named "PathNameHere" Look at the example on:

    https://msdn.microsoft.com/en-us/VBA...-method-access
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    10-05-2017
    Location
    Flagstaff, AZ
    MS-Off Ver
    2013
    Posts
    8
    Quote Originally Posted by MarvinP View Post
    Hi Forest,

    I'd bet you don't have a folder on your hard drive named "PathNameHere" Look at the example on:

    https://msdn.microsoft.com/en-us/VBA...-method-access
    Lol! I deleted the path before copying the code here. On my end the actual path name is included. Unfortunately, that is not the issue.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Export Access to Excel Error

    Hi ForestCruise,

    You don't assign a string variable using "Set". It's just like so:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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. Error due to "rs.update" (export Excel to Access)
    By Galven in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2014, 12:18 PM
  2. Error when try to export Excel data to Access
    By Nelliebeanz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2014, 09:02 AM
  3. Opening Excel from Access, running Code in Excel then export back to Access
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2012, 08:49 AM
  4. Export from Excel to Access
    By Dave31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2008, 11:06 AM
  5. File Error - Data May Be Lost message after Access export
    By Northpaw22 in forum Excel General
    Replies: 0
    Last Post: 12-06-2005, 06:06 PM
  6. [SOLVED] export access to excel. change access & update excel at same time
    By fastcar in forum Excel General
    Replies: 0
    Last Post: 06-24-2005, 05:05 PM
  7. Export from Access to Excel
    By Sabina in forum Excel General
    Replies: 3
    Last Post: 02-23-2005, 06:06 PM

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