Dear all,
I am saving my reports as Excel File with Format. After that I open the files and try to format them via Cognos Script /VBA.
One formatting task is to set the borders for some cells.
I use the following line of code:
objExcel.Application.ActiveSheet.Range("A1:G3").Borders.LineStyle = xlContinuous
Problem: Cognos Script comes up with an error message: variable "xlContinuous" is not defined.
How do I solve this?
In my other script I can use constants like "xldown" for formatting. I am bit despaired.
Regards
f.
I am saving my reports as Excel File with Format. After that I open the files and try to format them via Cognos Script /VBA.
One formatting task is to set the borders for some cells.
I use the following line of code:
objExcel.Application.ActiveSheet.Range("A1:G3").Borders.LineStyle = xlContinuous
Problem: Cognos Script comes up with an error message: variable "xlContinuous" is not defined.
How do I solve this?
In my other script I can use constants like "xldown" for formatting. I am bit despaired.
Regards
f.