Groups | Blog | Home
all groups > sql server programming > september 2004 >

sql server programming : DTS ActiveX Excel Formatting Question


Rick Schuhr
9/4/2004 8:14:47 PM
All,

I have been away from DTS for some time now and have been asked to step back
in and help someone out. However, there are some dynamic steps in the
ActiveX task script that require that we hide and unhide specific Excel
columns relative to the initial column insertion point on each worksheet.
(i.e. We are inserting a new column for the Week-ending metrics and then
hiding any columns with weekending dates not in the current month)
FirstColDisplayed=datepart(m,convert(char(8),@eDate120)+'01')
LastColDisplayed=datepart(wk, @eDate)

Can someone refresh my memory as to the syntax to control the property from
ActiveX?

I tried xlSheet.EntireColumn.Hidden = True (Where xlSheet is my connection
reference in ActiveX that works properly), but it fails.
I prefer to do this in ActiveX since I already have the global variables
containing the dates and column numbers for the data insertion points. All
that is left is to set up the looping construct to hide the remaining
columns relative to the position of my initial global variables.

Thanks for your help in advance!

Mishka

Uri Dimant
9/5/2004 7:59:27 AM
Rick
Please visit at www.sqldts.com


[quoted text, click to view]

Rick S.
9/9/2004 1:07:03 PM
Thanks Uri.

I looked through the site but was unable to locate anything that dealt
directly with the ActiveX syntax for hiding/unhiding EXCEL columns. Most of
what I saw dealt with DTS transformation issues. I need to dynamically,
depending on the week in question, hide or unhide several columns while
still keeping the data available for the users if they so choose to review
it.

If I missed an article that you think is particulary appropriate to my needs
can you include the complete URL? I would appreaciate it greatly.

Thanks again,

Rick


[quoted text, click to view]

AddThis Social Bookmark Button