+ Reply to Thread
Results 1 to 8 of 8

Command button text enlarges when print preview is exited

  1. #1
    Forum Contributor
    Join Date
    10-08-2013
    Location
    London
    MS-Off Ver
    365
    Posts
    136

    Command button text enlarges when print preview is exited

    Hi All,

    I have created a protected staff scheduling worksheet in Excel 2010 with over twenty command buttons and one toggle button, three of which are used to print different sections of the schedule.

    I can select one of the print command buttons, change print settings and print normally from the print preview and the worksheet will return to its normal state after selecting print. However, if I choose to exit the print preview without printing, via the close print preview button, upon returning to the work sheet all the text on every command button and the toggle button has been enlarged.

    All three print buttons use similar code:

    Please Login or Register  to view this content.
    If I click the toggle button after the text has been enlarged, the text in some of the command buttons reverts back to normal but others remain in an enlarged text state. The only way all buttons appear to revert back to normal is if I select one of the print buttons again and then print instead of exiting the print preview.

    It is the command button text only not the button size that is effected. Does anyone have any idea what is causing this issue?

    Many thanks,
    Last edited by L plates; 12-13-2014 at 08:35 AM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Command button text enlarges when print preview is exited

    If you used ActiveX control buttons (instead of forms control buttons) that would explain the problem. ActiveX controls exhibit such odd and unpredictable behavior that I stopped using them years ago. If not ActiveX, then I don't know why that issue would occur.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    10-08-2013
    Location
    London
    MS-Off Ver
    365
    Posts
    136

    Re: Command button text enlarges when print preview is exited

    Hi Ron,

    Thanks for responding and yes it is ActiveX. In my search for a solution I have also read that ActiveX is not the most favorable way to control a work sheet (long after I started this one however!) and I will have to turn to form control if I can't fix the issue. I had thought of changing over to form control but have spent so much time on getting this sheet to where it is it's very hard to justify all the work if there is a solution.

    If anyone else has a fix for this before I start altering for form control it would be most welcome!

    Thanks,

  4. #4
    Forum Contributor
    Join Date
    10-08-2013
    Location
    London
    MS-Off Ver
    365
    Posts
    136

    Re: Command button text enlarges when print preview is exited

    I have decided to use form controls as I believe the issue to be in the unstable nature of ActiveX. This has opened up another issue that I will start a new thread for!

    Ron, thanks again for your input.

    Regards,
    Dave C

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Command button text enlarges when print preview is exited

    Hi L plates

    Take a look at this Link for a possible solution to your Button Issue. If you're interested in pursuing this, I'll be glad to help.

    Look in particular at around Post #207.

    http://www.excelforum.com/excel-prog...ol-button.html
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Forum Contributor
    Join Date
    10-08-2013
    Location
    London
    MS-Off Ver
    365
    Posts
    136

    Re: Command button text enlarges when print preview is exited

    Hi jaslake,

    Thank you for your kind offer of assistance. I tried pasting the code in post 207 to my workbook and can see how refreshing each sheet may solve the issue but could not adapt it to my print control button. When I select any print button, the button code is directed straight to the refresh code and the print preview is no longer being displayed and no printout occurs.

    I have noticed that when the print preview does show with my original print code only, the preview image is scaled down to about 40% zoom but the button text remains scaled at 60% zoom. When I exit the preview without printing, the image is scaled back to the original 60% zoom state but the text gets scaled up with it. I tested this theory by zooming out to 40%, select print and then exit and found that when I zoomed back in to 60% the button text was its correct size. I also discovered that it only affects two of the print buttons - "PRINT SCHEDULE" & "PRINT EVENING SALES". These two buttons both hide rows when selected. The other print button does not.

    I'm guessing that I could add some lines of code to the two affected print buttons that zoom out to 40% before print preview and revert back to 60% zoom afterwards. A bit clunky perhaps and not sure if I can zoom with VBA yet. I have attached the workbook. Lots of code for other buttons that needs to be worked with yet by me but you will be able to see the print issue straight away.

    Many thanks,

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Command button text enlarges when print preview is exited

    Hi L plates

    The Code I referenced does not solve your issue.

    You may wish to take a look at this link as it appears to describe your issue

    http://support.microsoft.com/kb/2598144

    Apparently Excel 2010 has a problem.

  8. #8
    Forum Contributor
    Join Date
    10-08-2013
    Location
    London
    MS-Off Ver
    365
    Posts
    136

    Re: Command button text enlarges when print preview is exited

    Hi jaslake,

    Thank you for the suggestion. As my workbook is intended for use on a workplace network any fix requests for excel 2010 would be ignored by my IT department. As I get back from holiday I also find that 2010 has been replaced by 2013! The bug still exists and I may just have to live with it for the moment while I work on other aspects of the workbook.

    I may get time to revisit this soon.

    Many thanks,

+ 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. Disable Print button in Full Print Preview
    By RaquelAR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-17-2013, 02:03 PM
  2. 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
  3. [SOLVED] Why do Command Buttons get stacked after print preview?
    By thall22963 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-05-2005, 04: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