Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Updating from external file & keeping previous data static

I am currently updating a series of Excel sheets which change daily.
I set it up so that it has references to the source file and once I
replace the source file with the new data, then the sheets get
updated. I have been asked to keep the data from previous week "as
is" and just append the new data each and every day. I have to copy
and paste the information to the sheet, but because the cells are not
continous, I spend hours in this process. Do any of you have any idea
as to how I could possibly add some sort of automation to this
process?

Thank you,
Mildred
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Updating from external file & keeping previous data static

Not having the details, I can only offer some pseudo-code:

Workbooks.Open "c:\....\.sourcefile.xls"
Workbooks("sourcefile.xls").Worksheets("Sheet1") _
Range("A1:Z100").Copy Destination:= Workbooks _
("destinationfile.xls").Worksheets("Sheet1").Range ("A" _
& LastRow + 1)

where LastRow is the last "occupied" row on the destination worksheet. Post
back if this works for you and if you need a way to figure out LastRow.

--

Vasant



"Mildred" wrote in message
m...
I am currently updating a series of Excel sheets which change daily.
I set it up so that it has references to the source file and once I
replace the source file with the new data, then the sheets get
updated. I have been asked to keep the data from previous week "as
is" and just append the new data each and every day. I have to copy
and paste the information to the sheet, but because the cells are not
continous, I spend hours in this process. Do any of you have any idea
as to how I could possibly add some sort of automation to this
process?

Thank you,
Mildred



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Updating from external file & keeping previous data static

Mildred,

I would suggest that you turn the macro recorder on and then go through the
actions that you perform to add the new data, and stop the recorder.

Then look at the code, and remove any hard-coding (such as ranges) to
dynamic values. If you have problems with this, you can post back here with
details.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Mildred" wrote in message
m...
I am currently updating a series of Excel sheets which change daily.
I set it up so that it has references to the source file and once I
replace the source file with the new data, then the sheets get
updated. I have been asked to keep the data from previous week "as
is" and just append the new data each and every day. I have to copy
and paste the information to the sheet, but because the cells are not
continous, I spend hours in this process. Do any of you have any idea
as to how I could possibly add some sort of automation to this
process?

Thank you,
Mildred



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
Prevent previous entered data from updating ksell87 Excel Discussion (Misc queries) 1 May 14th 10 12:13 AM
Static Data Updating MilleniumPro New Users to Excel 4 July 26th 09 01:49 AM
Dynamic data, static range, not updating. Mike K Charts and Charting in Excel 2 June 8th 06 05:07 PM
Copy old Data from web query while keeping previous days data DRobidoux Excel Worksheet Functions 0 March 22nd 06 01:56 PM
Updating a textbox without erasing previous data nadir[_2_] Excel Programming 1 December 2nd 03 10:27 PM


All times are GMT +1. The time now is 01:25 AM.

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"