PC Review


Reply
 
 
terilad
Guest
Posts: n/a
 
      25th Feb 2010
Hi,

I am looking for a formula or code to fill in a range of cells with a figure
on the 1st of every month, so when 1st March arrives I need cell C1 to enter
£100 and when 1st April arrives I need cell D2 to £100 and so on for 12
months.

Can anyone help me with this query.

Many thanks


Mark
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      25th Feb 2010
Select the sheet tab which you want to work with. Right click the sheet tab
and click on 'View Code'. This will launch VBE. Paste the below code to the
right blank portion. Get back to to workbook and try out.


Private Sub Worksheet_Activate()
If Day(Date) = 1 Then Cells(1, Month(Date)) = 100
End Sub

--
Jacob


"terilad" wrote:

> Hi,
>
> I am looking for a formula or code to fill in a range of cells with a figure
> on the 1st of every month, so when 1st March arrives I need cell C1 to enter
> £100 and when 1st April arrives I need cell D2 to £100 and so on for 12
> months.
>
> Can anyone help me with this query.
>
> Many thanks
>
>
> Mark

 
Reply With Quote
 
terilad
Guest
Posts: n/a
 
      25th Feb 2010
Hi Jacob,

This code not doing anything for me, do I have to input cells into the code
so that the cells C1, D1, E1 etc fill in withh the 100 on the ist of every
month?

Many thanks

Mark

"Jacob Skaria" wrote:

> Select the sheet tab which you want to work with. Right click the sheet tab
> and click on 'View Code'. This will launch VBE. Paste the below code to the
> right blank portion. Get back to to workbook and try out.
>
>
> Private Sub Worksheet_Activate()
> If Day(Date) = 1 Then Cells(1, Month(Date)) = 100
> End Sub
>
> --
> Jacob
>
>
> "terilad" wrote:
>
> > Hi,
> >
> > I am looking for a formula or code to fill in a range of cells with a figure
> > on the 1st of every month, so when 1st March arrives I need cell C1 to enter
> > £100 and when 1st April arrives I need cell D2 to £100 and so on for 12
> > months.
> >
> > Can anyone help me with this query.
> >
> > Many thanks
> >
> >
> > Mark

 
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
Outlook AutoFill Delete one autofill entry only katr52@yahoo.com Microsoft Outlook Discussion 4 5th Oct 2006 10:37 PM
Autofill: Need to autofill one week block, (5) weekday only into cells. dstock Microsoft Excel Misc 1 17th Jun 2005 08:21 PM
Q. Autofill question: Can I autofill alpha characters like I can numbers? George Microsoft Excel Programming 5 7th Aug 2004 10:33 AM
autofill? robz Microsoft Excel Discussion 5 4th Aug 2004 11:43 PM
AutoFill Dave Ramage Microsoft Excel Programming 1 29th Jul 2003 11:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 AM.