+ Reply to Thread
Results 1 to 4 of 4

User form linked to Macro to show print preview

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,737

    User form linked to Macro to show print preview

    I have a user form and one of the items is to show the print Preview for several sheets

    when running the macro , I am able to to select "ClosePrint Preview"


    However when running the macro via the user form" it freezes and I need to right click on the task bar for the workbook and select close window

    It would be appreciated if someone could assist me so that the printview using the user form does not freeze and can select the or cancel button to exit




    See User form code below


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.


    See macro below




    Please Login or Register  to view this content.
    Last edited by Howardc1001; 12-29-2021 at 04:07 AM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,259

    Re: User form linked to Macro to show print preview

    Set Up Userform to Show as non modal
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,737

    Re: User form linked to Macro to show print preview

    Hi Sintek


    Many Thanks for the help. Code works perfectly

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,259

    Re: User form linked to Macro to show print preview

    All good...Tx for rep +

+ 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] Macro to enable user to preview print range
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2019, 02:09 AM
  2. Print preview for a User Form OR Select a printer from list of avaiable
    By TheHobbit81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2019, 06:31 AM
  3. [SOLVED] User form doesn't unload with a print preview in front of it in a code bloc
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2014, 08:24 AM
  4. User Form freezes when I do Print Preview
    By JieJenn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2012, 12:55 PM
  5. Print preview from user form opened from a user form
    By Brunstgnegg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2011, 05:12 AM
  6. VBA Macro shows Print Preview page: How to auto-maximize the Print Preview?
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2010, 04:48 PM
  7. [SOLVED] cell borders that I create dont show on print preview or print
    By scott3435 in forum Excel General
    Replies: 2
    Last Post: 04-05-2006, 09:40 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