?
Solved

Command buttons re-sizing randomly when a workbook is opened or activated

Posted on 2011-02-28
4
Medium Priority
?
283 Views
Last Modified: 2012-05-11
I have a workbook with 6 command buttons on the first worksheet. Normally they stay in place and retain their size but...

Sometimes (when the workbook is opened or activated) one or more buttons will get bigger e.g. the width goes from say 162 to 3999 or they reposition themselves or they disappear (could this be because the width or height becomes zero?)

The workshop open event causes the button's visibiilty to change dependent on the user- but not to re-size.

Any ideas as to how to avoid this would be very much appreciated!!

Norman Mitchell
0
Comment
Question by:NormanMitchell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:NormanMitchell
ID: 34998866
I have seen this once some years ago but cannot recall any detail as to cause or cure!
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34998929
Are they Forms buttons or ActiveX ones, and is the worksheet's Zoom set to anything other than 100%?
0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 1500 total points
ID: 34999011
You should always use Forms controls versus ActiveX controls.

ActiveX controls are not compatible with Macintosh Office.
Mutiple ActiveX controls cannot (easily) be assigned to a single macro.
Forms contols do not have as many properties as ActiveX controls.
ActiveX controls tend to cause more problems (workbook corruption).
ActiveX controls don't always behave as expected (font size changes without prompting, not reset when desired, unusable at times).

Kevin
0
 

Author Closing Comment

by:NormanMitchell
ID: 35007762
I think this was as good an answer as possible given the problem arises randomly - and is difficult / impossible to reproduce
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question