Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a macro that takes a screen shot of a sheet and then sends it to excel. However, if the model is not active on the sheet, it cant take a screenshot. It come through blank. I have tried ActiveDocument.GetSheet("").Activate before the screenshot to activate the sheet but it doesnt work.
Any Ideas?
To activate a sheet use something like:
ActiveDocument.Sheets("Main").Activate
This should create a 'screenshot' of the sheet with the name Main:
ActiveDocument.Sheets("Main").CopyBitmapToClipboard
Hi Gysbert,
I have managed to sort of the Activate part, although I need a timeout period to allow the sheet to activate. I have tried:
" ActiveDocument.GetApplication.WaitForIdle 1000 " but Qlikview seems to hang on waitforidle. Seems to be a bug.
Any way around that?