Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cs2883
 
Posts: n/a
Default Fixing the date.


I have a weekly production sheet and want it to put the date in
automatically when i enter the production info.

So on the first day it would put the date in, and on the next day it
would put that date in.

Its so i can put the week day in to calculate weekly production.

Is this possible or am i just been lazy.

Any help would be much apprecieated.

cheers

Ian


--
cs2883
------------------------------------------------------------------------
cs2883's Profile: http://www.excelforum.com/member.php...o&userid=27888
View this thread: http://www.excelforum.com/showthread...hreadid=473918

  #2   Report Post  
cs2883
 
Posts: n/a
Default


Just had a thourght.

Can you have mondays date of that week put into the first row as soon
as the file is opened that week?

I could then have it work out the rest of the week.

cheers

Ian


--
cs2883
------------------------------------------------------------------------
cs2883's Profile: http://www.excelforum.com/member.php...o&userid=27888
View this thread: http://www.excelforum.com/showthread...hreadid=473918

  #3   Report Post  
gls858
 
Posts: n/a
Default

cs2883 wrote:
I have a weekly production sheet and want it to put the date in
automatically when i enter the production info.

So on the first day it would put the date in, and on the next day it
would put that date in.

Its so i can put the week day in to calculate weekly production.

Is this possible or am i just been lazy.

Any help would be much apprecieated.

cheers

Ian


Not exactly what you asked but will this work?

Insert a static date or time

Current date Select a cell and press CTRL+;

Current time Select a cell and press CTRL+SHIFT+;

Current date and time Select a cell and press CTRL+; then SPACE then
CTRL+SHIFT+;

  #4   Report Post  
cs2883
 
Posts: n/a
Default


thanks, i'm ever hopeful of a lazy way of doing it.

regards

Ian


--
cs2883
------------------------------------------------------------------------
cs2883's Profile: http://www.excelforum.com/member.php...o&userid=27888
View this thread: http://www.excelforum.com/showthread...hreadid=473918

  #5   Report Post  
Gord Dibben
 
Posts: n/a
Default

Ian

If your data is being entered in column A and you want a date stuck into
column B use this event code.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'when entering data in a cell in Col A
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 1 Then
n = Target.Row
If Excel.Range("A" & n).Value < "" Then
Excel.Range("B" & n).Value = Date
End If
End If
enditall:
Application.EnableEvents = True
End Sub

This is worksheet event code.

Right-click on the sheet tab and "View Code". Copy/paste the code into the
module.


Gord Dibben Excel MVP

On Thu, 6 Oct 2005 15:32:37 -0500, cs2883
wrote:


I have a weekly production sheet and want it to put the date in
automatically when i enter the production info.

So on the first day it would put the date in, and on the next day it
would put that date in.

Its so i can put the week day in to calculate weekly production.

Is this possible or am i just been lazy.

Any help would be much apprecieated.

cheers

Ian




  #6   Report Post  
cs2883
 
Posts: n/a
Default


cheers, ill have a go with that and let you know how i go.

regards

Ian


--
cs2883
------------------------------------------------------------------------
cs2883's Profile: http://www.excelforum.com/member.php...o&userid=27888
View this thread: http://www.excelforum.com/showthread...hreadid=473918

  #7   Report Post  
cs2883
 
Posts: n/a
Default


Ok, i'm really new to all this. What exactly do i have to do with that.
I've tried to put it in as a macro. Is that right? If not what do i
do?

Sorrry to be a pain!

cheers in advance

Ian


--
cs2883
------------------------------------------------------------------------
cs2883's Profile: http://www.excelforum.com/member.php...o&userid=27888
View this thread: http://www.excelforum.com/showthread...hreadid=473918

  #8   Report Post  
cs2883
 
Posts: n/a
Default


Its ok, i got the idea of how to do it from another post.

This forum is ace!!

cheers

Ian


--
cs2883
------------------------------------------------------------------------
cs2883's Profile: http://www.excelforum.com/member.php...o&userid=27888
View this thread: http://www.excelforum.com/showthread...hreadid=473918

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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
Recurring annual events using a specific date as a trigger date Bamboozled Excel Worksheet Functions 1 June 6th 05 01:44 PM


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