+ Reply to Thread
Results 1 to 7 of 7

Why is the DatePicker control changing Sizes when I re-open File?

  1. #1
    Registered User
    Join Date
    10-06-2006
    Posts
    82

    Why is the DatePicker control changing Sizes when I re-open File?

    Dear Excel Expert.

    My datepicker control in my Excel App (=EMBED("MSComCtl2.DTPicker.2","") appears very large every time I open the file. I am using Excel 2003.

    When I go to design view and adjust it, it stays the correct size but when I re-open the Excel file it's very large again.

    Please see the attached screen shots for a clearer explanation of the problem.

    Thank you for your response.
    Attached Images Attached Images

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Why is the DatePicker control changing Sizes when I re-open File?

    activex control+worksheet=weird behavior :-)

    especially if you use zoom settings other than 100%
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    10-06-2006
    Posts
    82

    Re: Why is the DatePicker control changing Sizes when I re-open File?

    Thank you for the response JosephP. If I change the zoom it fixes the problem but still every time I open the workbook the activex control is large despite saving the workbook at 10% zoom.

    Thanks again for your response much appreciated.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Why is the DatePicker control changing Sizes when I re-open File?

    did you mean 10% or 100%? activex controls are not very reliable on worksheets so you would require code to resize it when the workbook opens

  5. #5
    Registered User
    Join Date
    10-06-2006
    Posts
    82

    Re: Why is the DatePicker control changing Sizes when I re-open File?

    Sorry I meant 100%.

  6. #6
    Registered User
    Join Date
    02-15-2021
    Location
    Romania
    MS-Off Ver
    2007, 2010, 2019
    Posts
    1

    Lightbulb Re: Why is the DatePicker control changing Sizes when I re-open File?

    I know it is a very old post, but I found a workaround for this problem.
    Open VBA Project by hitting Alt + F11, find ThisWorkbook Excel object and insert the following code:
    Please Login or Register  to view this content.
    This code will activate each sheet and wil do a little scroll, down and up. In this way ActiveX objects will be refreshed and restore last saved size.

    Regards,
    Vali

  7. #7
    Registered User
    Join Date
    06-10-2021
    Location
    St. Louis, MO
    MS-Off Ver
    2016
    Posts
    1

    Re: Why is the DatePicker control changing Sizes when I re-open File?

    Thanks for replying. This helped a lot.

+ 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