Date control for multiple PCs

jacko2401

New Member
Joined
Aug 24, 2011
Messages
35
Hi

I have a spreadsheet that I developed on a Windows 7 (64-bit) PC in Excel 2007 (32-bit) with the DTPicker control in a userform. This worked fine but I then shared the spreadsheet with a friend who has a Windows 8 PC (32-bit) and Excel 2010.

I am getting a "Compile error: unable to find project or library" error on my friend's PC linked to when running VBA code related to the DTPicker. I found that the control was missing when going into the spreadsheet > VBA > Tools > References. I later upgraded to Office 2010 (32-bit) myself and the spreadsheet still works. Looks like the control is stored in a different place on my Win7 64-bit PC.

I'd like to change the way I select dates moving away from the DTPicker. I need to use a control on a userform where I can select a dates within a 1 year range (e.g. a start date defined in a cell within the spreadsheet and then choose a date to any day from the start date to 1 year in the future) that can be used on Office 2010 and either 32-bit or 64-bit Windows PCs.

Can anyone suggest a few options that I they would recommend or that I can look into that will allow this flexibility and not be 32-bit or 64-bit Windows specific in terms of where the control is stored.

Thanks
Steve
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,215,136
Messages
6,123,246
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top