Dear All
I aim to take a screenshot of an active Excel window (it is a userform) and send it in the body of a Outlook E-Mail as image with clicking on a commandbutton on userform. I found some codes; however I think I have mistake combining two codes together. Here are two codes I am working on. First one is "ScreenCapture" to copy the active window into clipboard and second one is "emailimage" to paste clipboard to outlook mail. If I run them seperately with two buttons (see attachment: click first ScreenCapture and then emailimage), they do exactly what I want. However I cannot combine them to run just with 1 click (I have used "Call" code, but ScreenCapture is not seems to work properly, it takes capture of outlook mail: see attachment and click RunBoth button). How can I combine them together or run them properly with just 1 click on userform?
Kitap1.xlsm
Thanks in advance
CODE-1: ScreenCapture (to take screenshot of active window)
CODE-2: emailimage (to paste clipboard to a new mail and send/display it)Please Login or Register to view this content.
CODE-3: Runboth (to run two different macro with 1 click)Please Login or Register to view this content.
Please Login or Register to view this content.
Bookmarks