Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
I have this Private Sub fradato_Change() 'Here i write a date End Sub Private Sub tildato_Change() 'Her i write another date End Sub Private Sub dageialt_Change() ' And it is here i will have the result off tildato.value - fradato.value But i can't making work nothing happens End Sub Hope one can help regards alvin |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi sebatienm
Well i try to ecplain I have 3 textbox in the two textbox i will write a date in the last textbox i will have how many days are there between textbox 2 and textbox 1 Hope you understand Regards alvin "sebastienm" skrev: Hi Alvin. - What kind of controls are fridato, tildato, and dageialt? What are you trying to do? - ''Here i write a date': you write the date where? from the control to an excel sheet? - what are you trying to do? Regards, Sébastien "Alvin Hansen" wrote: hi I have this Private Sub fradato_Change() 'Here i write a date End Sub Private Sub tildato_Change() 'Her i write another date End Sub Private Sub dageialt_Change() ' And it is here i will have the result off tildato.value - fradato.value But i can't making work nothing happens End Sub Hope one can help regards alvin |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ok, what about:
"when fradato changes or when tildato changes then modify dageialt" - I added a sub : EditDateDiff - I deleted : dageialt_Change Private Sub fradato_Change() EditDateDiff End Sub Private Sub tildato_Change() EditDateDiff End Sub Private Sub EditDateDiff() if isdate(fradato.text) and isdate(tildato) then 'if values are dates dageialt.value = datevalue(tildato.value) - datevalue(fradato.value) end if End Sub Regards, Sébastien "Alvin Hansen" wrote: Hi sebatienm Well i try to ecplain I have 3 textbox in the two textbox i will write a date in the last textbox i will have how many days are there between textbox 2 and textbox 1 Hope you understand Regards alvin "sebastienm" skrev: Hi Alvin. - What kind of controls are fridato, tildato, and dageialt? What are you trying to do? - ''Here i write a date': you write the date where? from the control to an excel sheet? - what are you trying to do? Regards, Sébastien "Alvin Hansen" wrote: hi I have this Private Sub fradato_Change() 'Here i write a date End Sub Private Sub tildato_Change() 'Her i write another date End Sub Private Sub dageialt_Change() ' And it is here i will have the result off tildato.value - fradato.value But i can't making work nothing happens End Sub Hope one can help regards alvin |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you tkank you
It's working After have trying all things so i'm very glad for your help Best regards alvin "sebastienm" skrev: ok, what about: "when fradato changes or when tildato changes then modify dageialt" - I added a sub : EditDateDiff - I deleted : dageialt_Change Private Sub fradato_Change() EditDateDiff End Sub Private Sub tildato_Change() EditDateDiff End Sub Private Sub EditDateDiff() if isdate(fradato.text) and isdate(tildato) then 'if values are dates dageialt.value = datevalue(tildato.value) - datevalue(fradato.value) end if End Sub Regards, Sébastien "Alvin Hansen" wrote: Hi sebatienm Well i try to ecplain I have 3 textbox in the two textbox i will write a date in the last textbox i will have how many days are there between textbox 2 and textbox 1 Hope you understand Regards alvin "sebastienm" skrev: Hi Alvin. - What kind of controls are fridato, tildato, and dageialt? What are you trying to do? - ''Here i write a date': you write the date where? from the control to an excel sheet? - what are you trying to do? Regards, Sébastien "Alvin Hansen" wrote: hi I have this Private Sub fradato_Change() 'Here i write a date End Sub Private Sub tildato_Change() 'Her i write another date End Sub Private Sub dageialt_Change() ' And it is here i will have the result off tildato.value - fradato.value But i can't making work nothing happens End Sub Hope one can help regards alvin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel result return wrong calcuation result | Excel Worksheet Functions | |||
excel result return wrong calcuation result | Excel Worksheet Functions | |||
Advanced formula - Return result & Show Cell Reference of result | Excel Worksheet Functions | |||
Importing result from Access query to Excel but the result only c. | Excel Discussion (Misc queries) | |||
vlookup based on random result returns incorrect result | Excel Worksheet Functions |