You must be wondering why this blog wasn't updated for a long time. The reason is that I started a new job.
Along with other stuff, I'm playing with QlikView and I'd like to share some interesting ideas.
In QlikView, The list boxes which filters the entire sheet (or document) is a very common thing. I thought that if we have a box list with a small amount of values, it might be more beautiful to replace each value with an image. For exmaple, let's say that we have three divisions in the company. Instead of putting a list-box with their names, we can put three images with their logos and make that a click on the image will filter on these values (very simple with the Actions tab). The problem is that the user won't know on which division the sheet is filtered on. That's why we need to make the other images more transparent. Using macro, that's very easy and the result is awsome:
sub SetTransparentImage
set image = ActiveDocument.GetSheetObject("ImageIDHere")
set imageProps = image.GetProperties
imageProps.Layout.BkgAlpha = 50
image.setProperties imageProps
end sub
Now, put that in the macro script inside your document. In order to add images to your sheet, add new Text boxes and set their background to the image you want. In the Actions tab, set the desired value on click and also run this subroutine.
Enjoy.