Results 1 to 4 of 4

Print preview from user form opened from a user form

Threaded View

Brunstgnegg Print preview from user form... 05-13-2011, 02:50 AM
royUK Re: Print preview from user... 05-13-2011, 03:22 AM
Brunstgnegg Re: Print preview from user... 05-13-2011, 03:28 AM
royUK Re: Print preview from user... 05-13-2011, 05:12 AM
  1. #1
    Registered User
    Join Date
    06-21-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2003
    Posts
    50

    Print preview from user form opened from a user form

    Hello everyone

    I have a problem with Excel locking up when calling PrintPreview from a UserForm. The solution to this problem seems to be something along these lines:

    Me.Hide
    Sh.PrintPreview
    Me.Show
    The problem is that I have two userforms open when calling PrintPreview. I tried doing this:

    Me.Hide
    OtherForm.Hide
    Sh.PrintPreview
    OtherForm.Show
    Me.Show
    Doing this only OtherForm is displayed. When I close OtherForm Me is showed again.

    There is another problem as well. It appears that calling Hide and then Show calls the Activate event which does a bunch of initializations that I don't want. All I really want is to HIDE them, i.e. I want the values of all the controls to be the same and for no events to be triggered.

    Solution?

    Thanks in advance
    Last edited by Brunstgnegg; 05-13-2011 at 03:27 AM.

Thread Information

Users Browsing this Thread

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

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