+ Reply to Thread
Results 1 to 13 of 13

show sheet when it appears the print dialog box

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    show sheet when it appears the print dialog box

    Hello,
    the attached macro works.
    After clicking "PRINT MODULE" the print preview is displayed and so far it is OK.
    I choose close and it's ok, if you choose print "disappears" the sheet to appear the dialog box of the print.
    I choose print and then "reappears" the sheet.
    Is it possible when I choose print in the preview to not "disappear" the sheet?
    I hope I have explained myself.

    Please Login or Register  to view this content.
    max_max
    Attached Files Attached Files
    Last edited by max_max; 06-10-2018 at 03:54 PM.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: macro modification

    I think that the hiding of the preview pane is a built in feature of Windows. To change that, you would need advanced programming to get into the source code of the application.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro modification

    I hope to explain myself:

    show sheet when it appears the print dialog box

    max_max

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: macro modification

    Hello max_max,

    You may receive much more responses if you at least give some feedback on suggested solutions to your Threads, like this Link, for instance.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: macro modification

    Ciao max_max,

    You have been a member for way too long with way too many posts to post a thread with an extremely lacking thread title. Please correct before we can move on. Grazie!
    HTH
    Regards, Jeff

  6. #6
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro modification

    I do not know how to change the title

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: macro modification

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  8. #8
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: show sheet when it appears the print dialog box

    Changed the thread title
    I hope my english is understandable

  9. #9
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: show sheet when it appears the print dialog box

    @max_max, your English is good enough. The problem I am having is understanding where you want to see the sheet displayed. When I use code to print a sheet and have the Print Preview property on, it displays the active sheet in the preview pane until I click print. It then closes the Print Preview pane because I have excuted the print process. My active sheet automatically returns to the screen. This is the normal process for printing in Excel. So, what part of this process is not working for you?

  10. #10
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: show sheet when it appears the print dialog box

    Hi JLGWhiz
    The preview is displayed with the macro
    I click on the print button in the preview and display the print dialog box but not the sheet
    Click on the print button of the print dialog box to print the sheet and close the print dialog box
    The sheet reappears now.
    What I ask is that the sheet is always visible here even with the print dialog box activated.
    I hope I explained myself.
    max_max

  11. #11
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: show sheet when it appears the print dialog box

    Quote Originally Posted by max_max View Post
    Hi JLGWhiz
    The preview is displayed with the macro
    I click on the print button in the preview and display the print dialog box but not the sheet
    Click on the print button of the print dialog box to print the sheet and close the print dialog box
    The sheet reappears now.
    What I ask is that the sheet is always visible here even with the print dialog box activated.
    I hope I explained myself.
    max_max
    It should display an image of the the page from the sheet that it will print in the preview dialog box. If it does that for you then that is normal.
    The preview screen uses the entire pane when it appears and I could not get it to diminish so that the active sheet would be displayed at the same time. So apparently the print procedure blocks access to the souce data until the user decides whether or not to print. Once the user dicides which to do, the active sheet will then re-appear. Does this help?

  12. #12
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: show sheet when it appears the print dialog box

    The printing procedure is like this, but I thought with the VBA to view the sheet even with the print dialog box activated.
    max_max

  13. #13
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: show sheet when it appears the print dialog box

    Quote Originally Posted by max_max View Post
    The printing procedure is like this, but I thought with the VBA to view the sheet even with the print dialog box activated.
    max_max
    Not without getting into the application source code and even then it would probably change it for all of Windows, since the printer interface is a Windows application and not just Excel. Sorry, that is outside my expertise.
    Regards, JLG
    Last edited by JLGWhiz; 06-11-2018 at 08:14 PM.

+ 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 modification
    By aaron061883 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-21-2017, 08:14 AM
  2. Excel 2007 : Macro modification
    By Martin Chamberlin in forum Excel General
    Replies: 1
    Last Post: 10-04-2011, 03:51 AM
  3. Help with the macro modification
    By Nithya1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2011, 08:45 PM
  4. Macro Modification
    By johncena in forum Excel General
    Replies: 0
    Last Post: 02-17-2010, 10:40 AM
  5. Macro Modification
    By johncena in forum Excel General
    Replies: 1
    Last Post: 02-16-2010, 01:10 AM
  6. need help with macro modification please
    By excelguru in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2005, 03:18 PM
  7. Macro Modification Help
    By Dmorri254 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-04-2005, 12: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