Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Calendar value

I have a userform in Excel 2003 that i need to select a start date.
when I click the calendar control it puts he date into a txtStart.

what I can not figure ouit is how to add 30, 60 or 90 days to that value
which will
also be in text box.

any help on this matter is greatly appreciated

thank you all in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Calendar value

Hi HellZg8,

Try:

'=============
Private Sub Calendar1_Click()
With Me.Calendar1
txtStart.Value = .Value
txt30 = .Value + 30
txt60 = .Value + 60
txt90 = .Value + 90
End With
End Sub
'<<=============


---
Regards,
Norman


"hellZg8" wrote in message
...
I have a userform in Excel 2003 that i need to select a start date.
when I click the calendar control it puts he date into a txtStart.

what I can not figure ouit is how to add 30, 60 or 90 days to that value
which will
also be in text box.

any help on this matter is greatly appreciated

thank you all in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Calendar value

Norman your a genius
thank you for a very quick response

works like a charm.

I can not believe how much help I have gotten from everyone on this site

to all who have acknowledged my lack of Excel VBA experience
once again I thank you all


Reply
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
Convert date from Gregorian Calendar to Hijri Calendar H.Alkhodary Excel Discussion (Misc queries) 1 February 21st 09 10:11 AM
find free sharware to include calendar pop or use calendar in cell ednc Excel Discussion (Misc queries) 2 April 14th 08 05:05 PM
how do i export excel calendar info to outlook calendar? Maggie Excel Discussion (Misc queries) 1 December 31st 07 10:27 PM
Modify Yearly Calendar to Monthly Calendar Excel 2000? James Cooper Excel Programming 13 July 13th 06 11:46 PM
import calendar items from excel into outlook calendar jsewaiseh Excel Discussion (Misc queries) 0 September 2nd 05 03:53 PM


All times are GMT +1. The time now is 01:17 PM.

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"