Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Copying field headers when exporting data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
andrea.bruner@gmail.com - 15 Feb 2006 16:39 GMT
I'm creating a VBA script in Access that will take data selected by a
basic query, place it in an Excel worksheet, and format the data. I
cannot figure out how to take the headers from the fields I select in
the query and place them at the top of the Excel sheet. I do not want
to hardcode the field names, as this script will be reused on various
datasets. Anyone have a suggstion?

Thanks,
Andrea
Doug Robbins - Word MVP - 15 Feb 2006 18:51 GMT
This group is for the use of Visual Basic in Word.  Suggest that you post to
one of the Access or Excel newsgroups since you are trying to integrate
those two applications.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> I'm creating a VBA script in Access that will take data selected by a
> basic query, place it in an Excel worksheet, and format the data. I
[quoted text clipped - 5 lines]
> Thanks,
> Andrea
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.