Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Contributor II

VBScript xlHAlignLeft

My VBscript for columnwidth is working but the alignment is not.

Any ideas why this would not work in an inline process??


objCurrentSheet.Columns("A").ColumnWidth = 35
objCurrentSheet.Columns("B").ColumnWidth = 125
objCurrentSheet.Columns("A").HorizontalAlignment = xlHAlignLeft

1 Reply

Re: VBScript xlHAlignLeft

The xl-constants won't be regocnized in each case. You could try it only with xlLeft but mostly are the numeric equivalent from these xl-constants better to use. In your case try it with 3:

objCurrentSheet.Columns("A").HorizontalAlignment = xlHAlignLeft

Helpful is the using of the excel-vba direct-window and there:

?VarType(xlHAlignLeft) // and then enter

- Marcus

Community Browser