Dim objTrans as Object
Dim objModel as Object
Dim objCube as Object
Dim strModelName as String
Dim strPath1 as String
Dim strPath2 as String
Dim strModel as String
Dim strCube as String
Dim strCubeName as String
Dim varDate as Variant
'*** Finds system date and creates new cube name ***
varDate = CVar(Date)
strCubeName = strModelName & Format(varDate,"Medium Date") & ".mdc"
'*** Open model inside Transformer ***
Set objTrans = CreateObject ("CognosTransformer.application")
Set objModel = objTrans.OpenModel (strModel)
Set objCube = objModel.Cubes.Item(1)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.