473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Excel DatePicker (6.0/SP6) Moves On File Open

I have an excel file that I have been working on bit by bit over a few years, that I use as a basic, personal task tracker. I've built in task/milestone differentiation and a Gantt chart that moves relative to the selected date. I created a few basic controls to set the Gantt chart view (back one week, back one day, today, forward one day, forward one week), and I set up a date picker to set the view to any date of the user's choosing.

I recently moved to Office 2010, and now I'm having a problem with the Date Picker. It keeps re-positioning itself to the top-left corner of the sheet when I open the file. I then have to enter "Design Mode," manually re-position it, then exit design mode, and everything works as it should. Specifically, the date picker is designed to hover roughly over H4:J5, but on load it positions itself over the row/column headings at the top-left, varying in size some times (some times it covers A1:C2, others it's A1:H7). The fix is the same every time.

I've tried re-sizing, re-positioning, re-building and changing properties of the date picker, but nothing seems to make it load in the right position or size.

Further complicating things, I have VBA code that lets me hide the first three rows (a "header" of sorts) for when I want to get down to business, so the date picker needs to be able to move with rows 4-5 so that it stays relative to the date control buttons (fwd, today, back).

The file is normally in .xlsm, but bytes.com won't let me upload that, so I've converted it to .xls. I have confirmed that all of the VBA functionality and the error persist in the .xls version of this file (I mostly just want the extra layers of conditional formatting).

Is there VBA code that I could use to force it to a specific location, yet still have it move with the "hide header" control?

Thanks in advance for any consideration you can give to this problem.
Attached Files
File Type: xls SAMPLE TASK TRACKER.xls (1.73 MB, 680 views)
Jan 11 '13 #1
2 9981
zmbd
5,501 Expert Mod 4TB
Joel Marion:
Looks like you were buried under a busy day, this sometimes happens - an unfortunate aspect of the web. :)

With Office 2010, they have dropped support for that version of the date picker.Replacing the Calendar Control in Access 2010 Applications What you've experienced has been the more benign events... I've read where the applications have crashed, the PC BSOD, and other more frustrating events; however, it seems that normally people are simply receiving a broken library error.

There are various workarounds listed around the net that will allow the use of the old control and third party add-ins; however, IMHO, if you need this functionality, then in the long run it will be less heartburn to adopt one of the conventions as given in the link.

As for anyone d/l your attached file. You'll find that very few of the Experts/Mods will do so for an unrequested attachment. This has to do more with Good/Safe computing practice and should never be taken as a personal reflection. Plain and Simple, good people have Trojans on their PC quite often and never know it! Therefor, it is always best (preferred) to post the pertinent portion of the script/code formatted with the [Code/] button when the code is suspect.

best regards
z
Feb 11 '13 #2
I had the same issue so in "ThisWorkBook" module I added the following code:

Private Sub Workbook_Open()
Worksheets("Whatever sheet").DTPicker2_Name.Visible = False
Worksheets("Whatever sheet").DTPicker2_Name.Top = 0
Worksheets("Whatever sheet").DTPicker2_Name.Left = 0
Worksheets("Whatever sheet").DTPicker2_Name.Width = SomeWidth
Worksheets("Whatever sheet").DTPicker2_Name.Height = SomeHeight
Worksheets("Whatever sheet").DTPicker2_Name.Visible = True
Worksheets("Whatever sheet").DTPicker2_Name.Top = WhereYouWantItTop
Worksheets("Whatever sheet").DTPicker2_Name.Left = WhereYouWantItLeft
Worksheets("Whatever sheet").DTPicker2_Name.Width = SomeWidth
Worksheets("Whatever sheet").DTPicker2_Name.Height = SomeHeight
End Sub

The respective values I grabbed from the actual DatePicker control properties window while in Developer mode.
Mar 22 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Flashman | last post by:
I know this is an odd question but is their some way for Visual C++ .NET 2003 to open a file with extension .URL without trying to open it as "shortcut". Use a third party cross-platform tool that...
2
by: OutdoorGuy | last post by:
Greetings, I have a "newbie" question in relation to opening files from C#. I have a Windows form where I allow the user to type in a file extension in a text box (e.g., "xls"). I then take...
2
by: ramaraog80 | last post by:
Hi, I want VB Script which converts Excel data into CSV file. Please Reply me ASAP.
3
by: Farshid Lashkari | last post by:
Hi, My goal is to detect all (or most) file dependencies of a script (i.e. modules, dlls, data files). Currently, after a script is finished executing I use sys.modules to determine all module...
1
by: Dachshund Digital | last post by:
If Explorer can display a file path longer than 260 odd characters, why is it that System.IO.File.Open Method can not? Calling GetFiles from my.computer.fileystem can return paths longer but...
3
by: Rob Tackley | last post by:
-------------------------------------------------------------------------------- Hi all, How can I check if I have an excel speadsheet already open? and if it is, how do I read write from it...
13
by: NJonge01 | last post by:
I use this "Access Cookbook" from Ken Getz that comes with some pretty nice sample code and applications. I use some file open features they have but I don't know enough about what they've created...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am able to upload files to a server with a .net web application. The problem is I am providing a hyperlink so the user can open the file after it is placed on the server. For the URL I am...
5
by: abb | last post by:
On a Vista machine, the following code works using the ASP.NET Development Server, but fails in IIS7: book = excel.Workbooks.Open(tempfile, false, false, Missing.Value, Missing.Value,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.