PC Review


Reply
Thread Tools Rate Thread

date form and workbook with autofill for date

 
 
ll
Guest
Posts: n/a
 
      4th Sep 2007
Hi,
I'm working with a form that populates the spreadsheet with a year's
worth of dates. Now, I'm attempting to split the date fill according
to month.
My question is, is there a way to do this while still using the
autofill function or would I need to perhaps use a loop instead?

Thanks,
Louis

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sk5X?=
Guest
Posts: n/a
 
      4th Sep 2007
say the month is in B1 and the full date is in A1.
range("B1").formula = "=month(A1)"

Then use autofill down.

Is this what you were looking for?
--
JNW


"ll" wrote:

> Hi,
> I'm working with a form that populates the spreadsheet with a year's
> worth of dates. Now, I'm attempting to split the date fill according
> to month.
> My question is, is there a way to do this while still using the
> autofill function or would I need to perhaps use a loop instead?
>
> Thanks,
> Louis
>
>

 
Reply With Quote
 
ll
Guest
Posts: n/a
 
      5th Sep 2007
On Sep 4, 2:58 pm, JNW <J...@discussions.microsoft.com> wrote:
> say the month is in B1 and the full date is in A1.
> range("B1").formula = "=month(A1)"
>
> Then use autofill down.
>
> Is this what you were looking for?
> --
> JNW
>


Thanks for your reply. I had been using autofill, but, as I am now
trying to separate the months on the same worksheet (spaced by a set
number of blank rows), I have been trying a loop (for n=2 to
daysinyear).
It's partially working, although I am looking at a conditional
statement (below). Does anyone know what syntax might be better to
use?

If Cells(j - 1, 1).Value <> "" Or j > 10 And Cells(j - 5, 1).Value <>
"" Then


To sum up what I have - three worksheets - two of which have dates.
One of them has only dates (two columns - the first for date and the
second for day of week). The other sheet is populated by the first
sheet (in its date columns). I want to use this code to populate the
'date only' sheet (with gaps between months).

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Form Date Autofill Field Gabriella777_2 Microsoft Word Document Management 1 21st Aug 2008 03:39 PM
checkbox code to autofill date and once date hit unchecks itself =?Utf-8?B?Ymx1ZXpjcnVpemVy?= Microsoft Access Form Coding 3 17th Feb 2007 07:26 PM
Re: Autofill current date in field on form Mike Mueller Microsoft Access Forms 0 8th Jul 2003 06:06 PM
RE: Autofill current date in field on form Dean Microsoft Access Forms 0 8th Jul 2003 05:56 PM
Autofill current date in field on form LLR Microsoft Access Forms 0 8th Jul 2003 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 AM.