Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George
 
Posts: n/a
Default Importing data

hi

I would like to import data from the web and although this is quite simple
in Excel 2003 the new data (that comes in upon refresh) replaces the old. I
was wondering if there is a way to keep previous history of the data, make
Excel fill in adjacent cells with the new data for example.

Thanks for taking the time to read this

George


  #2   Report Post  
 
Posts: n/a
Default

hi,
if you are using Microsoft query, the answer would be no.
The Micorsoft query becomes a named range in excel that
is linked to the query. by desing it expands and contracts
at refresh to accommidate new data.
I think to accomplish what you want you might new a macro
to copy the data prior to refresh.
this is a little more complicated than a simple copy but
if you use the copy command, you would be coping the MSQ
too.
Sub macSetRange()
Dim rng As Range
Dim rng1 As Range
Dim rcnt As Long
Dim ccnt As Long
Set rng = Range(Range("A1"), Range("A1").End(xlDown).Offset
(0, 1))'set the 1 to the number of columns you have
'rng.Select
rcnt = rng.Rows.Count - 1
ccnt = rng.Columns.Count - 1
Set rng1 = Range(Range("K1"), Range("K1").Offset(rcnt,
ccnt))
rng1.Value = rng.Value
rng.select
selection.querytable.refresh Backgroundquery:=false
end sub
-----Original Message-----
hi

I would like to import data from the web and although

this is quite simple
in Excel 2003 the new data (that comes in upon refresh)

replaces the old. I
was wondering if there is a way to keep previous history

of the data, make
Excel fill in adjacent cells with the new data for

example.

Thanks for taking the time to read this

George


.

Reply
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
Importing .txt data files increases .xls file size BrianJ Excel Discussion (Misc queries) 1 January 29th 05 02:02 PM
Importing Data Squid Excel Discussion (Misc queries) 2 January 24th 05 11:52 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Importing Data From Another Spreadsheet Tiziano Excel Discussion (Misc queries) 6 January 7th 05 02:35 AM
How to import a path/filename when importing data into an XML list cxparker Excel Worksheet Functions 0 December 7th 04 10:13 PM


All times are GMT +1. The time now is 01:23 PM.

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

About Us

"It's about Microsoft Excel"