+ Reply to Thread
Results 1 to 2 of 2

How to insert PrintScreen into image control at runtime?

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    How to insert PrintScreen into image control at runtime?

    Hello respected Gurus & Experts!

    It would be silly but I want to insert a printscreen in a usrform image control. I found this macro to take the print screen
    Please Login or Register  to view this content.
    this macro just takes prints but does not show the print until I open a program and past it.I used another sheet tab to past it.
    Now my userform is programed in a way that it loads pictures from external location in the PC based on what is in the textbox1(pictures are named according textbox1.value).
    is it possible that if there is no picture for a record I may insert the screenshot if yes how can I modify the above macro my code that inserts the pictures into userform image control is beloow:
    Please Login or Register  to view this content.
    I know it can be done by putting a dummy sketch there but I just want this.

    Best Regards
    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to insert PrintScreen into image control at runtime?

    I think you'll need to use the Windows API to do this, here's one example.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-15-2015, 08:45 PM
  2. [SOLVED] VBA to transfer image FROM userform image control TO a worksheet cell
    By Zoediak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 02:51 PM
  3. [SOLVED] Embed image to button using Image control
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2014, 05:37 PM
  4. Insert a picture in image control on exact coordinates
    By trebovsek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2011, 04:53 AM
  5. Displaying and Updating Image Dynamically (ActiveX Image Control?)
    By VTHokie11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2011, 10:57 AM
  6. Image Position within ActiveX Image Control
    By gerryiscool in forum Excel General
    Replies: 0
    Last Post: 09-07-2011, 02:08 AM
  7. [SOLVED] Programatically control picture property of Image control
    By Brassman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1