Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Program to apply macro to new spreadsheet

Sorry, this may be an easy answer, but I dont have it -

Ive got an macro that does some simple manipulation of an excel sheet
- removes header rows, totals, and then sorts the data.

I then use sql to import the data and do a few simple tasks..

The problem is that our excel sheet gets sent to us every day with new
data, and the macro is not part of the sheet. I have to go in and add
the macro myself every day before im import the data.

Is there a simple way (programmatically or other) to quickly have a
macro applied to the spreadsheet and run?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Program to apply macro to new spreadsheet

Hi,

You can:
1. Put the macro in the Personal Macro Workbook
2. You can run any macro in any open file from any other file
3. You can create a Add-In
4. You may need to generalize your code so it can be run in any of the above
solutions.
--
Cheers,
Shane Devenshire


"miaminemo" wrote:

Sorry, this may be an easy answer, but I dont have it -

Ive got an macro that does some simple manipulation of an excel sheet
- removes header rows, totals, and then sorts the data.

I then use sql to import the data and do a few simple tasks..

The problem is that our excel sheet gets sent to us every day with new
data, and the macro is not part of the sheet. I have to go in and add
the macro myself every day before im import the data.

Is there a simple way (programmatically or other) to quickly have a
macro applied to the spreadsheet and run?

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
8 Functions in a spreadsheet program Aleatha Excel Discussion (Misc queries) 1 November 1st 06 09:14 PM
automatically apply a macro to all worksheets minrufeng Excel Discussion (Misc queries) 5 February 21st 06 09:34 PM
Can you open a new spreadsheet in a new program window? 3R''s Excel Discussion (Misc queries) 3 November 10th 05 12:59 AM
Need Help Initializing Excel Spreadsheet Program jb999 Excel Discussion (Misc queries) 0 November 7th 05 05:57 PM
Need Help Initializing Excel Spreadsheet Program jb999 Excel Discussion (Misc queries) 3 November 2nd 05 11:09 PM


All times are GMT +1. The time now is 09:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"