Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Create macro to copy data on a scheduled basis

I am running a spreadsheet (Excel 2003) with dynamic data updates that I want
to capture production data toward the end of a shift before it resets for the
next shift. The objective is to capture data from a source file and save it
somewhere else for historical purposes. Below was my idea on how this might
be done; however, if you offer a better solution, please let me know.

My thought was to schedule a task linked to Excel to launch in the last
minute of the shift every day. As part of the process of executing the task
tied to opening the file (using a VB module tied to "ThisWorkbook" in a file
called Prod Data.xls), I want to execute a macro to go to the source file
(called "Scoreboard.xls" and worsheet called "Prod-Eff") and copy all the
data on that worksheet into "Prod Data.xls".

After copying and pasting into "Prod Data.xls", the macro would execute a
"Save As..." command to save it into another directory for historical
purposes. Essentially, the idea is to use the scheduled task Excel file (Prod
Data.xls) as a conduit to retrieve the source data (without affecting that
worksheet from continuing its updating), save and store the data into another
folder. Finally, I want the "Prod Data.xls" conduit file to close after
completing the task - until the next day when the scheduled task executes
again.

Can someone help me with the Module1 code that I must write that will be tied
to the Scheduled Task "Prod Data.xls" file? Again, I know it must be tied to
VBAProject (Prod Data.xls) and attached to "ThisWorkbook" to ensure the macro
runs upon opening.

Sorry for being so wordy - but I wanted to try to clearly explain my idea.

I advance, thanks for your support.

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
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
Macro question Chris Excel Worksheet Functions 12 July 7th 06 01:23 AM
I need formula help or create a macro to copy and paste value only Rebecca Excel Discussion (Misc queries) 4 April 8th 06 01:18 PM
Create a Macro that will copy the rows that have a value < 0 wil4d Excel Discussion (Misc queries) 1 December 18th 05 05:28 PM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM


All times are GMT +1. The time now is 06:58 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"