Ok so I am further on with it now I have clicked build.
I have added some more script around the code I already had
' Microsoft SQL Server Integration Services Script Task
' Write scripts using Microsoft Visual Basic
' The ScriptMain class is the entry point of the Script Task within Integration Services
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Public Class ScriptMain
' The execution engine calls this method when the task executes.
' To access the object model, use the Dts object. Connections, variables, events,
' and logging features are available as static members of the Dts class.
' Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
'
' To open Code and Text Editor Help, press F1.
' To open Object Browser, press Ctrl+Alt+J.
Sub FormatSpreadsheetPS_V3()
My VBA Script
End Sub
End Class
Now I have done this I have lots and lots of errors such as......
'DisplayAlerts' is not a member of 'Microsoft.SqlServer.Dts.Runtime.Application'
Name 'Workbooks' is not declared.
Name 'curr' is not declared.
Name 'ActiveWorkbook' is not declared.
Name 'EXH' is not declared.
And so on and so on so obviously I need to do something else. The good thing is that at least its doing something now.
If any one has any best guesses what my next move should be it would be greatly apprieciated.
(I imagine I may get a comment that just says declare everything, I understand that but some more input on how you go about doing this would be good)
Debbie