+ Reply to Thread
Results 1 to 7 of 7

Active X control button not locked

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    858

    Active X control button not locked

    I am using an Active X contol[Listbox] button in an input form. When I email the workbook to a colleague, the Listbox has expanded in size and has to be re-positioned? In properties, Locked is set to True. Am I missing something?
    Thanks in advance.
    Last edited by Aland2929; 02-28-2012 at 03:04 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Active X control button not locked

    ActiveX controls can be temperamental. Try using a Forms ListBox with set it to not move or size with cells
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    858

    Re: Active X control button not locked

    Thanks Roy. I will try that.

  4. #4
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Active X control button not locked

    Try using the IntegralHeight property - set it to false when you initialise the form
    Please Login or Register  to view this content.
    The default for this item is TRUE - see http://msdn.microsoft.com/en-us/libr...ralheight.aspx
    When this property is set to true, the control automatically resizes to ensure that an item is not partially displayed.

    PS: Sorry - Active X as you said - worksheet control - sorry I was referring to userforms however there still is a IntegralHeight property for an active x listbox control - The problem you talk of can also occur when the zoom is not set to 100% - if the other user has a different zoom setting other than 100% then its position can change. You can try setting the top and left attribute of the control
    Last edited by smuzoen; 02-28-2012 at 02:55 AM. Reason: Active X not userform
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

  5. #5
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    858

    Re: Active X control button not locked

    The Actice X has some advantages. My list has a few thousand names and I can type a few letters to jump to a name which I can't do with Form. I have set IntegralHeight to false and will see if that works. Thanks.

  6. #6
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Active X control button not locked

    Quote Originally Posted by royUK View Post
    ActiveX controls can be temperamental. Try using a Forms ListBox with set it to not move or size with cells
    The activeX counterpart to Roy's offering is the Placement property with a value of 1 (default is 2).

    Is it larger upon reciept, or does the control grow in size after manipulation? I have had many users note growing or bloated controls (activeX only) under two specific scenarios (both of which are addressed, but not fixed microsoft bugs):

    1. On and off of docking station
    2. Connected to external displays (most often projectors, but have had issues with a simple external monitor).

    Sadly, I'm now () considering setting the position properties programatically to force re-size those that were (or could have become) culprits.

  7. #7
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    858

    Re: Active X control button not locked

    The Active X control is larger upon receipt but setting the IntegralHeight property to False has solved the problem. Thanks.

+ Reply to Thread

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