+ Reply to Thread
Results 1 to 3 of 3

User Form properties

  1. #1
    Forum Contributor
    Join Date
    06-27-2014
    Location
    bristol, england
    MS-Off Ver
    excel 2007
    Posts
    264

    User Form properties

    Hi guys, below i have code for printing a userform, it all works in as far as it prints landscape etc, the only problem being it does not print the whole screen, after playing about with it for hours, i have just noticed there is a zproperty for the userform called zoom, when i changed this to 80% and then printed the userform this works fine and the whole form prints.

    My question is, within my code can any code be added that can change the zoom property value to 80, and then change it back too 100 once the form has printed, i dont want a user going into the code or property windows changing it manually.

    Please Login or Register  to view this content.
    any help greatly appreciated

    scouse13

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: User Form properties

    Where in the module is your code triggered?

    Code syntax will change based on where it's located.

    Assuming that it's somewhere within UserForm (i.e. command button etc).
    Before you run above code.
    Please Login or Register  to view this content.
    Then set back to 100 after your code.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: User Form properties

    To elaborate (while completely agreeing with CK76), you should only need the zoom setting during the snapshot, so :

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ 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. [SOLVED] Write to built in document properties with a User Form
    By TSkyla in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2019, 06:33 PM
  2. Populate text boxes on user form, from combo box on same user form
    By Richardswaim in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 07-03-2016, 09:35 AM
  3. ComboBox Properties in User Form
    By Himsel in forum Excel General
    Replies: 3
    Last Post: 09-26-2015, 10:06 AM
  4. (VBA User form)Can i do data validation within TextBox Properties Window
    By buwa84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2014, 11:47 AM
  5. [SOLVED] User Form to execute search and return all values to the user form for editing
    By allwrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2013, 10:40 PM
  6. [SOLVED] Excel vba user form- open directly to user form not worksheet
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-24-2013, 05:07 PM
  7. user form & control properties
    By Mike Molyneaux in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2005, 04:41 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