PC Review


Reply
Thread Tools Rate Thread

Auto run Macro when file is replaced daily?

 
 
=?Utf-8?B?VGFzaGE=?=
Guest
Posts: n/a
 
      12th Jul 2007
I have a process in Access that transfers a query to a spreadsheet in Excel
every day, replacing the spreadsheet named "PROCESS.txt" each day. I am
trying to find out if there is a way when a file is opened with a specific
name, such as above "PROCESS.txt" to program the macro DLYPROChdr to run
automatically? I know to do it in the original workbook will work, but if
the workbook is replaced daily, won't it also replace the macro? Or maybe
I've confused myself. I have a macro that builds the headers in the
spreadsheet and formats the columns. I want it, every morning when Access
transfers the spreadsheet to Excel as PROCESS.xls to run that macro
automatically when the file is opened from it's designated folder. Hope
someone can help me... ????? Thanks!!!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VGFzaGE=?=
Guest
Posts: n/a
 
      12th Jul 2007
Sorry, not sure why this posted....ignore this one, the 2nd post is the right
one.....

"Tasha" wrote:

> I have a process in Access that transfers a query to a spreadsheet in Excel
> every day, replacing the spreadsheet named "PROCESS.txt" each day. I am
> trying to find out if there is a way when a file is opened with a specific
> name, such as above "PROCESS.txt" to program the macro DLYPROChdr to run
> automatically? I know to do it in the original workbook will work, but if
> the workbook is replaced daily, won't it also replace the macro? Or maybe
> I've confused myself. I have a macro that builds the headers in the
> spreadsheet and formats the columns. I want it, every morning when Access
> transfers the spreadsheet to Excel as PROCESS.xls to run that macro
> automatically when the file is opened from it's designated folder. Hope
> someone can help me... ????? Thanks!!!

 
Reply With Quote
 
=?Utf-8?B?VGFzaGE=?=
Guest
Posts: n/a
 
      12th Jul 2007
Sorry, not sure why this posted....ignore this one, the 2nd post is the right
one.....

"Tasha" wrote:

> I have a process in Access that transfers a query to a spreadsheet in Excel
> every day, replacing the spreadsheet named "PROCESS.txt" each day. I am
> trying to find out if there is a way when a file is opened with a specific
> name, such as above "PROCESS.txt" to program the macro DLYPROChdr to run
> automatically? I know to do it in the original workbook will work, but if
> the workbook is replaced daily, won't it also replace the macro? Or maybe
> I've confused myself. I have a macro that builds the headers in the
> spreadsheet and formats the columns. I want it, every morning when Access
> transfers the spreadsheet to Excel as PROCESS.xls to run that macro
> automatically when the file is opened from it's designated folder. Hope
> someone can help me... ????? Thanks!!!

 
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
Auto Create an Excel Backup File on a Daily Basis igbert Microsoft Excel Misc 1 2nd Oct 2009 09:16 PM
Auto run Macro when file is replaced daily? =?Utf-8?B?VGFzaGE=?= Microsoft Excel Programming 1 12th Jul 2007 06:15 PM
f9 key - I've replaced it with another macro =?Utf-8?B?cnAyY2hpbA==?= Microsoft Word Document Management 3 15th Nov 2006 10:07 PM
Auto save replaced my original file and now I need the original? =?Utf-8?B?SG9scw==?= Microsoft Excel Misc 1 15th Aug 2005 10:34 PM
Macro to copy daily text file =?Utf-8?B?Q2hlcnls?= Microsoft Excel Programming 1 27th May 2004 05:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 PM.