dbTalk Databases Forums  

ActiveX script in DTS to Autofilter on a Protected worksheet

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


Discuss ActiveX script in DTS to Autofilter on a Protected worksheet in the microsoft.public.sqlserver.dts forum.



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

Default ActiveX script in DTS to Autofilter on a Protected worksheet - 11-05-2008 , 04:58 PM






Could anyone please assist?
I need to have Autofilter on a Protected Excel worksheet, but I can't seem
to get it working.
I know the same thing can be done in Excel itself (Set the Autofilter, then
Tools, Protection, Protect Sheet, Enable Autofilter), but I need to do it in
programmatically, using an ActiveX Script task in DTS.
Have tried using the code below which shows the Autofilter in the Excel, but
I can't use, doesn't allow me to click on the drop-down arrows.

xl.ActiveSheet.Range("A1","F1").AutoFilter
xl.ActiveSheet.Protect

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.