ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy image of UserForm to a clipboard (https://www.excelbanter.com/excel-programming/304048-copy-image-userform-clipboard.html)

Gabor

Copy image of UserForm to a clipboard
 
G'Day,

I have developed a UserForm which is now in use at my company to view
records of a database.
It is getting more and more popular, and I have to express he THANKS FOR
EVERYONE who helped me out with my hopelessly novice questions re UserForms
over the last couple of years. GREAT !!! I have learnt a great deal, without
this NG and the experts out there I would not have been able to accomplish
the task ...

Now, here is the next hurdle, at least for me: some of the guys use the
images of the UserForms in Powerpoint presentations: their problem is they
cannot easily paste the image of the UserForm on to a .ppt slide. They make
a screenshot, paste it into Paintbrush, then section that picture and copy
the required portion into the presentation slide, or .doc or whatever.
Cumbersome ! There's got to be a better way !

The question is: what would be the code run by a CommandButton on the
userform which would copy the image of the UserForm to the clipboard ? I
mean: the UserForm only, without the surrounding view of the screen.
The procedure would be: the user hits that commadbutton [image copied to
clipboard] then user switches to Powerpoint slide. Then user pastes the
image onto the powerpoint slide with Ctrl+v .

I've tried all commands, no success...
Please help...

Grazie mille


Gabor



keepITcool

Copy image of UserForm to a clipboard
 

Gabor..

take the rest of the day off.. no coding involved :)

teach ' m to use standard windows keyboard shortcuts..

[alt]+[printscreen] ...(this will dump the active form)

[alt][tab] to go to powerpoint...
[ctr][v] to paste




keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Gabor" wrote:

G'Day,

The procedure would be: the user hits that commadbutton [image
copied to clipboard] then user switches to Powerpoint slide. Then user
pastes the image onto the powerpoint slide with Ctrl+v .

I've tried all commands, no success...
Please help...

Grazie mille


Gabor





Gabor

Copy image of UserForm to clipboard
 
Thanks, it's easy.
What is the code getting the [alt]+[printscreen] done by a commandbutton?
Gabor

"keepITcool" schrieb im Newsbeitrag
...

Gabor..

take the rest of the day off.. no coding involved :)

teach ' m to use standard windows keyboard shortcuts..

[alt]+[printscreen] ...(this will dump the active form)

[alt][tab] to go to powerpoint...
[ctr][v] to paste




keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Gabor" wrote:

G'Day,

The procedure would be: the user hits that commadbutton [image
copied to clipboard] then user switches to Powerpoint slide. Then user
pastes the image onto the powerpoint slide with Ctrl+v .

I've tried all commands, no success...
Please help...

Grazie mille


Gabor







keepITcool

Copy image of UserForm to clipboard
 
in VB6 it would be Sendkeys "%{PRTSC}"
although it doesnt generate an error in VBA..
it doesn't do anything noticable either :(


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Gabor" wrote:

Thanks, it's easy.
What is the code getting the [alt]+[printscreen] done by a

commandbutton?
Gabor

"keepITcool" schrieb im Newsbeitrag
...

Gabor..

take the rest of the day off.. no coding involved :)

teach ' m to use standard windows keyboard shortcuts..

[alt]+[printscreen] ...(this will dump the active form)

[alt][tab] to go to powerpoint...
[ctr][v] to paste




keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Gabor" wrote:

G'Day,

The procedure would be: the user hits that commadbutton [image
copied to clipboard] then user switches to Powerpoint slide. Then

user
pastes the image onto the powerpoint slide with Ctrl+v .

I've tried all commands, no success...
Please help...

Grazie mille


Gabor










All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com