LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default UserForm Calculator

Textbox3.Text = Format((cdate(textbox2) - cdate(textbox1),"0")

removed the control source setting from you textboxes.

--
Regards,
Tom Ogilvy

"timh2ofall" wrote in message
m...
I'm trying to build a Userform Date calculator where you would enter a
begin date in TextBox1 and an end date in TextBox2. CommandButton1
would then subtract the value in TextBox1 from TextBox2 and display
the number of days in TextBox3.
I tried having TB1 and TB2 place their values onto sheet1 A1 and A2
with a sum formula in A3. I then assigned the ControlSource for TB3 to
Sheet1!A3. It works only one time and then clears out the formula in
Sheet1 A3.
Can anybody help?



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PMT calculator carrie08 Excel Discussion (Misc queries) 8 September 26th 08 07:16 PM
uk tax calculator DarkNight New Users to Excel 21 May 3rd 06 06:19 PM
Calculator Terry Excel Discussion (Misc queries) 12 October 7th 05 10:54 AM
calculator Colin2u Excel Discussion (Misc queries) 4 August 20th 05 02:08 PM
calculator Colin2u Excel Discussion (Misc queries) 5 August 19th 05 09:13 PM


All times are GMT +1. The time now is 01:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"