Solved

Date and Time Picker Control - Calendar in upper left corner

Posted on 2014-01-08
4
4,009 Views
Last Modified: 2014-02-20
I have a user running Excel 2010 SP2 32bit and he wants to add a calendar control to his spreadsheet using Microsoft Date and Time Picker Control. When he adds it and gets out of Design Mode, the calendar goes to the upper left corner outside of the spreadsheet itself. It does not stay in its intended location.

I uninstalled/reinstalled Office and downloaded/installed latest version of MSCOMCT2.OCX. OS is Win7-64SP1.

Thanks in advance!
0
Comment
Question by:brainsurf1
[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
  • 2
4 Comments
 
LVL 40

Expert Comment

by:als315
ID: 39765888
I think it is bug in Excel. On any reason Top value is not used until you change it manually. Open properties of Picker and change value in Top parameter:
TopNow Picker will be on proper place
0
 

Author Comment

by:brainsurf1
ID: 39765993
Hi als315,

There was a value for Top; I did change it and the calendar moved and stayed in place and did not go to the upper left corner. However, when the document was saved and later reopened, the calendar reverted back to the upper left corner.
0
 
LVL 40

Accepted Solution

by:
als315 earned 200 total points
ID: 39767313
Yes, it is correct and seems correction of this bug is not planned by MS. I see only one solution (you can, of course, use form with calendar instead of ActiveX):
add sub to your worksheet:
Private Sub Worksheet_Activate()
ActiveSheet.DTPicker21.Top = 40       ' \Correct name of DTPicker and position
End Sub
0
 

Author Comment

by:brainsurf1
ID: 39789069
(Waiting for my user to try this suggestion--will post an update when he applies this fix)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

623 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