This code doesn't work.But,if i uncomment 38 row,and show "debug" msgbox,this code will be working.And the same thing with 26 row.If i comment 26 row(with uncommented 38 row),code will not work.
With 26 row it won't create image,and show error at 47 row,ofcource,becouse i haven't got an image
With 38 row,it can't select a range.and show error at 39 row.
Anybody know what is it?why if i put msgbox at row above export image or select range,all works good,when i disable msgbox i got an error....