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

Hi
Can i do this:
Have a form with 2 fields.
In this two fields i write 2 dates
then i want to make dates in a sheet from the first date to the second date

So if i write 01-01-2006 in the first
and 04-30-2006 ind the second
excel makes i a collum rows from 01-01-2006 to 04-30-2006

regards

Alvin


  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default insert dates

this is assuming range A1 & B1 are your two entry fields


Sub tofromdate()
Dim cou As Double
ActiveSheet.Range("I1").Select
For cou = ActiveSheet.Range("A1") To ActiveSheet.Range("B1")
ActiveCell.NumberFormat = "m/d/yyyy"
ActiveCell = cou
ActiveCell.Offset(1, 0).Activate
Next
End Sub




--
When you lose your mind, you free your life.


"alvin Kuiper" wrote:

Hi
Can i do this:
Have a form with 2 fields.
In this two fields i write 2 dates
then i want to make dates in a sheet from the first date to the second date

So if i write 01-01-2006 in the first
and 04-30-2006 ind the second
excel makes i a collum rows from 01-01-2006 to 04-30-2006

regards

Alvin


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default insert dates

Many thanks for your help


Alvin


"ben" wrote:

this is assuming range A1 & B1 are your two entry fields


Sub tofromdate()
Dim cou As Double
ActiveSheet.Range("I1").Select
For cou = ActiveSheet.Range("A1") To ActiveSheet.Range("B1")
ActiveCell.NumberFormat = "m/d/yyyy"
ActiveCell = cou
ActiveCell.Offset(1, 0).Activate
Next
End Sub




--
When you lose your mind, you free your life.


"alvin Kuiper" wrote:

Hi
Can i do this:
Have a form with 2 fields.
In this two fields i write 2 dates
then i want to make dates in a sheet from the first date to the second date

So if i write 01-01-2006 in the first
and 04-30-2006 ind the second
excel makes i a collum rows from 01-01-2006 to 04-30-2006

regards

Alvin


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default insert dates

You received an answer to your earlier post.

--
Regards,
Tom Ogilvy


"alvin Kuiper" wrote in message
...
Hi
Can i do this:
Have a form with 2 fields.
In this two fields i write 2 dates
then i want to make dates in a sheet from the first date to the second

date

So if i write 01-01-2006 in the first
and 04-30-2006 ind the second
excel makes i a collum rows from 01-01-2006 to 04-30-2006

regards

Alvin




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default insert dates

Hi Tom

It is not the same question , i try later to explain the question
about the timeline. ok???

Alvin


"Tom Ogilvy" wrote:

You received an answer to your earlier post.

--
Regards,
Tom Ogilvy


"alvin Kuiper" wrote in message
...
Hi
Can i do this:
Have a form with 2 fields.
In this two fields i write 2 dates
then i want to make dates in a sheet from the first date to the second

date

So if i write 01-01-2006 in the first
and 04-30-2006 ind the second
excel makes i a collum rows from 01-01-2006 to 04-30-2006

regards

Alvin







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
Insert ' sign infront of dates FIRSTROUNDKO via OfficeKB.com Excel Discussion (Misc queries) 5 September 28th 06 09:23 PM
how can i insert a subtotal from a range of dates rosa Excel Worksheet Functions 1 May 24th 06 06:58 PM
HOW CAN I INSERT A SUBTOTAL FROM A RANGE OF DATES rosa Excel Worksheet Functions 0 May 24th 06 05:47 PM
Insert dates! I cant do it now! fernandosaez Excel Discussion (Misc queries) 0 February 25th 06 04:03 PM
Insert Dates for Year Gladys Excel Discussion (Misc queries) 7 December 7th 05 07:07 PM


All times are GMT +1. The time now is 03: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"