PC Review


Reply
Thread Tools Rate Thread

Copying Query into Excel spreadsheet

 
 
Adam
Guest
Posts: n/a
 
      18th Aug 2009
Hi,

Trying to create a macro which is triggered after the user presses an
"update" button. The macro is to copy the data from a query
(qryPlanesDisplay) and paste the data onto fixed point on a datasheet
template (i.e. paste on A6). Data paste should be data only. Datasheet will
be stored for example in "My Documents" folder on desktop.

When another user does the same function after "updating" some information,
the macro should perform the same function and overwrite the existing
spreadsheet without being asked to overwrite.

Can this be done? Please help. Thanks in advance.
 
Reply With Quote
 
 
 
 
Ken Snell [MVP]
Guest
Posts: n/a
 
      30th Aug 2009
See these articles for examples of doing what you seek.

Write Data From a Recordset into an EXCEL Worksheet using Automation (VBA)
http://www.accessmvp.com/KDSnell/EXC...m#WriteRstFile


Write Data From a Recordset into an EXCEL Worksheet using EXCEL's
CopyFromRecordset (VBA)
http://www.accessmvp.com/KDSnell/EXC...ExpCopyFromRst


Using the Range Argument of TransferSpreadsheet when Exporting Data to an
EXCEL File (VBA)
http://www.accessmvp.com/KDSnell/EXC...t.htm#ExpRange


--

Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/




"Adam" <(E-Mail Removed)> wrote in message
news:13D6A4F0-C6B0-40B4-BE17-(E-Mail Removed)...
> Hi,
>
> Trying to create a macro which is triggered after the user presses an
> "update" button. The macro is to copy the data from a query
> (qryPlanesDisplay) and paste the data onto fixed point on a datasheet
> template (i.e. paste on A6). Data paste should be data only. Datasheet
> will
> be stored for example in "My Documents" folder on desktop.
>
> When another user does the same function after "updating" some
> information,
> the macro should perform the same function and overwrite the existing
> spreadsheet without being asked to overwrite.
>
> Can this be done? Please help. Thanks in advance.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003: Copying Spreadsheet =?Utf-8?B?b2NlYW5taXN0?= Microsoft Excel Misc 5 19th Sep 2006 09:42 PM
copying data from Excel spreadsheet to another DavidB Microsoft Excel Misc 1 10th Jan 2005 11:26 PM
Copying rows from one Excel spreadsheet to another =?Utf-8?B?aGV5ZHVkZQ==?= Microsoft Excel Misc 1 29th Oct 2004 04:10 PM
Copying Excel spreadsheet into PowerPoint Bill B. Microsoft Powerpoint 1 1st Apr 2004 01:26 AM
MS Query & Copying Adjacent Cells in a Spreadsheet Mark T. Microsoft Excel Worksheet Functions 0 30th Oct 2003 09:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 AM.