dbTalk Databases Forums  

Opening Excel in DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Opening Excel in DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Frank
 
Posts: n/a

Default Opening Excel in DTS - 03-05-2004 , 12:48 PM






Hi all,

I have a series of Macros housed in an Excel workbook.
All to fire on a workbook open event. The workbook macros
retrieve data (into a tabular format) then a workbook
event closes the workbook and saves the data.
Next, a DTS data pump would bring over the table into SQL
Server.

My question is, if I use the workbook as an Excel
connection, does this imply it will "open" the workbook
hence firing the macros, or do I need to write some kind
of Active X script to do that?

Thanks,

Mark

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Opening Excel in DTS - 03-06-2004 , 06:27 PM






I don't think it will fire the Macro that is set to go in the Open event of
the workboook or at least my quick test say it doesn't. You can use the
Excel Object library to fire Macros from within DTS as you have already
identified.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Mark Frank" <mark.a.frank (AT) wellsfargo (DOT) com> wrote

Quote:
Hi all,

I have a series of Macros housed in an Excel workbook.
All to fire on a workbook open event. The workbook macros
retrieve data (into a tabular format) then a workbook
event closes the workbook and saves the data.
Next, a DTS data pump would bring over the table into SQL
Server.

My question is, if I use the workbook as an Excel
connection, does this imply it will "open" the workbook
hence firing the macros, or do I need to write some kind
of Active X script to do that?

Thanks,

Mark



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.