PC Review


Reply
Thread Tools Rate Thread

Appearance of Controls misbehaving

 
 
Sophie
Guest
Posts: n/a
 
      4th Dec 2009
Hi - I'm having a peculiar problem with controls (there are 3 command
buttons) on my Sheet. One of the buttons, called cmdPrint, uses the
following code:

ActiveSheet.PrintOut Copies:=2, Preview:=True

This works exactly as expected. BUT, if I view the Preview, then click
'Close' before printing, there is a problem on the Sheet1. The Print button
looks fine, but the other two buttons appear distorted (about five times
taller than they were, and slightly wider). what's going on here? How can I
prevent this?

By the way, if I save and close the file then reopen it, all is back to
normal.

--
Thanks
Sophie
 
Reply With Quote
 
 
 
 
Sophie
Guest
Posts: n/a
 
      5th Dec 2009
re the posting I just sent - I've now set the PrintObject property of each
command Button to False. Now when I click cmbPrint, view the Preview, then
Close the Preview, the other two buttons don't distort as I've described
earlier, but they temporarily vanish. If I click in any of the sheet's
cells, the missing buttons magically reappear! I'm sure there must be a
simple explanation and a way to prevent this behaviour.
--
Thanks
Sophie


"Sophie" wrote:

> Hi - I'm having a peculiar problem with controls (there are 3 command
> buttons) on my Sheet. One of the buttons, called cmdPrint, uses the
> following code:
>
> ActiveSheet.PrintOut Copies:=2, Preview:=True
>
> This works exactly as expected. BUT, if I view the Preview, then click
> 'Close' before printing, there is a problem on the Sheet1. The Print button
> looks fine, but the other two buttons appear distorted (about five times
> taller than they were, and slightly wider). what's going on here? How can I
> prevent this?
>
> By the way, if I save and close the file then reopen it, all is back to
> normal.
>
> --
> Thanks
> Sophie

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Region Layout and misbehaving controls Jeff Microsoft Outlook Program Addins 0 17th Aug 2008 03:09 PM
what controls the appearance of the icons on the desktop tombates@city-net.com Windows XP Configuration 3 22nd Apr 2007 08:32 PM
Customizing the Appearance of Tab Controls =?Utf-8?B?Q293dG93bg==?= Microsoft Access 2 16th Nov 2005 10:17 PM
Disabling controls without changing their appearance =?Utf-8?B?RG9u?= Microsoft Dot NET 1 29th Apr 2004 05:07 PM
Appearance of Web Form controls in non-IE browsers Alex Microsoft ASP .NET 4 20th Aug 2003 09:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:49 PM.