Solved

Date and Time Picker Control - Calendar in upper left corner

Posted on 2014-01-08
4
3,047 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
  • 2
  • 2
4 Comments
 
LVL 39

Expert Comment

by:als315
Comment Utility
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
Comment Utility
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 39

Accepted Solution

by:
als315 earned 200 total points
Comment Utility
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
Comment Utility
(Waiting for my user to try this suggestion--will post an update when he applies this fix)
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now