ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is there a way to automtically apply macros in a script (https://www.excelbanter.com/excel-programming/445148-there-way-automtically-apply-macros-script.html)

zigzagdna

Is there a way to automtically apply macros in a script
 
I have a program which genartes csv files. This program is run from
Windows Task Scheuder at ceratin times of the day.
I apply macros (stored in presonal.xlsb) by manually opening the csv
files, then saving the formatted files as .xls file. Is
there a way to do the same using a command which I can place in the
script after csv file has been genarted. If yes, what is the command.

Thanks a lot.

James Ravenswood

Is there a way to automtically apply macros in a script
 
On Nov 27, 9:42*am, zigzagdna wrote:
I have a program which genartes csv files. This program is run from
Windows Task Scheuder at ceratin times of the day.
*I apply macros *(stored in presonal.xlsb) by manually opening the csv
files, then saving the formatted *files as .xls file. *Is
there a way to do the same using a command which I can place in the
script after csv file has been genarted. If yes, what is the command.

Thanks a lot.


The script command depends on the scripting language. In a .bat file:

echo on
start C:\TestFolder\Book1.csv
pause


All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com