add a date to a second textbox

Mon Wimp

New Member
Joined
Oct 24, 2004
Messages
27
Hi again to all that help people like me.

2 textboxes in a userform.
textbox 1 already shows my date when the form opens,
textbox 2 is to show the date 14 days after the date in textbox1.
I end up in the year 1900.

any thoughts would help

Thanks Allan
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi,

What are you using at the moment?

This may help you:

Code:
TextBox2.Value = Format(CDate(TextBox1.Value) + 14, "dd/mm/yyyy")
 
Upvote 0
excel 2007 @ work
excel 2010 @ home
Just did a quik one @ home and it works fine, so thanks for that James.
Allan
 
Upvote 0
Sorry, I meant what code are you using at the moment!

If it works at home though it should work at work.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

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