LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Copy continual, refreshing records to a new sheet

Add an event handler to the sheet containing
the "self refreshing" querytables

Assuming your Querytable is named AdoQuery1,
and is located on sheet1 (or at least not on sheet2 :)

then following would record it's change in sheet2




Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Name.Name
Case Me.Name & "!AdoQuery1"
With Worksheets(2).Cells(Rows.Count, 1).End(xlUp).Offset(1)
.Cells(1, 1) = Now
.Cells(1, 2) = Target.Cells(2, 1)
End With
Case Else
Stop
End Select
End Sub


Adapt as needed <g



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


EduardoDon wrote:


::

Hi there,

Looking for HELP on VB code for the following:

Need to copy and save specified ranges on a continual refreshing sheet
to another specified range of a new sheet.

Say,

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIFS using an array, but a continual -1 reference Anthony Excel Discussion (Misc queries) 1 October 12th 09 11:42 PM
I need to do a continual document merge with excel and word Patrick Excel Discussion (Misc queries) 9 October 25th 07 09:57 PM
How to copy records containing a specific date range to new sheet? Chrys Excel Worksheet Functions 1 January 30th 06 08:19 PM
Inter-spreadsheet Referencing - Continual need to locate linked fi Atreides Excel Discussion (Misc queries) 0 February 22nd 05 07:01 AM
Refreshing an external query on a protected sheet gavjs Excel Programming 1 October 21st 03 10:12 PM


All times are GMT +1. The time now is 12:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"