+ Reply to Thread
Results 1 to 2 of 2

Save Screenshot of an UserForm

  1. #1
    Registered User
    Join Date
    12-28-2018
    Location
    Colombia
    MS-Off Ver
    Microsoft Office 2013
    Posts
    27

    Question Save Screenshot of an UserForm

    Hello dear people,

    I'm here because I need your help once again.

    I tried to save a screenshot of an UserForm, after a search I achieved something using the following code:

    When I Press "Alt+Impr Pant" in my keyboard, it take a screenshot just of the UserForm I have open in that moment, that's what I need; After I press a button which has the following code to save the image:

    Please Login or Register  to view this content.
    I'm here because I need to modify three things in this code, but I haven't succeeded

    1. How I can integrate the "Alt+Impr Pant" action in the code? In that way I can skip this action before press the button and the button will perform all the work. I already tried "SendKeys" but I supposed I don't have the enough knowledge to integrate it.

    2. The image is saved larger than expected, I mean, it don't respect the original size of the screenshot. I read that I can modify the Paste Section implementing "Width= -1" and "Height= -1" but I failed to implement it.

    3. As you can see in the code, the file is saved with the name "Test.jpg", How I can make the image save with the same name of the Workbook?

    I hope you can help me!

    Thank you so much!
    Last edited by Santy4tas; 11-19-2019 at 10:26 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Save Screenshot of an UserForm

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. How to get out of this screen shot
    By doncole in forum Excel General
    Replies: 1
    Last Post: 10-12-2019, 09:00 PM
  2. Excel VBA to search data in particular website and save(screen shot) result in folder
    By Rajeshb938 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2016, 09:02 PM
  3. Replies: 7
    Last Post: 10-29-2014, 03:41 AM
  4. Screen Shot Paste
    By keen2xl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 07:43 AM
  5. How to take screenshot in excel to use pictue in vb
    By sugee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2013, 03:54 AM
  6. Screen Shot Question
    By potatomice in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2012, 09:53 AM
  7. Screen Shot
    By CarlainChicago in forum Excel General
    Replies: 1
    Last Post: 09-23-2010, 05:47 PM

Tags for this Thread

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