Forum Discussion
tristaanogre
16 years agoEsteemed Contributor
Change your code to the following:
I'm no VB expert but IIRC, if you're calling a method on an object, you need to preface the line with "Call". The above works fine.
Set ObrazokObj = Sys.Desktop.Picture
Call ObrazokObj.Stretch(800, 800)
Call ObrazokObj.SaveToFile("D:\plocha.png")
I'm no VB expert but IIRC, if you're calling a method on an object, you need to preface the line with "Call". The above works fine.