+ Reply to Thread
Results 1 to 4 of 4

VBA Code to Export an Access Query to Excel without the Header Row

  1. #1
    Forum Contributor
    Join Date
    09-21-2015
    Location
    nederland
    MS-Off Ver
    2021
    Posts
    203

    VBA Code to Export an Access Query to Excel without the Header Row

    Hello,
    I am trying to export an Access query to Excel, but I would like to exclude the header row from being exported. I am using the TransferSpreadsheet command below in VBA
    Any help would be greatly appreciated.

    Please Login or Register  to view this content.
    Last edited by kirana2014; 07-10-2021 at 01:04 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: VBA Code to Export an Access Query to Excel without the Header Row

    Most solutions call for deleting the row once you import the data
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

  3. #3
    Forum Contributor
    Join Date
    09-21-2015
    Location
    nederland
    MS-Off Ver
    2021
    Posts
    203

    Re: VBA Code to Export an Access Query to Excel without the Header Row

    could you please help me out with this

  4. #4
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: VBA Code to Export an Access Query to Excel without the Header Row

    Something as simple as this maybe?

    With wb.Worksheets(1)
    .Rows(1).Delete
    End With


    if you provide a sample file with test data in it as stated in the yellow banner above, others can chime in and assist if i cant.

+ 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. vba code to open an access and export a query to excel
    By pmchris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2020, 02:23 PM
  2. Export Access Query to Excel Range
    By ckserra in forum Access Tables & Databases
    Replies: 5
    Last Post: 01-24-2019, 12:21 PM
  3. [SOLVED] VBA to export Access Query results to Excel
    By jmzis4me in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2014, 06:34 PM
  4. Export Access Query Record into decicated fields in a Excel Template File
    By JRayhan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2013, 04:38 PM
  5. 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
  6. Execute query in access then export into excel via vba Excel
    By Statsman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2009, 11:42 AM
  7. Copy or Export an Access Query results back to Excel
    By MACRE0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2008, 01:07 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