Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Auto run Macro when file is replaced daily?

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!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Auto run Macro when file is replaced daily?

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!!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Auto run Macro when file is replaced daily?

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
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
how can I get old replaced excel file Mohammed Ali Excel Discussion (Misc queries) 1 April 1st 10 07:13 AM
Auto Create an Excel Backup File on a Daily Basis igbert Excel Discussion (Misc queries) 1 October 2nd 09 09:16 PM
Auto run Macro when file is replaced daily? Tasha Excel Programming 1 July 12th 07 06:15 PM
Auto save replaced my original file and now I need the original? Hols Excel Discussion (Misc queries) 1 August 15th 05 10:34 PM
Macro to copy daily text file Cheryl[_4_] Excel Programming 1 May 27th 04 05:46 AM


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