LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Entering static Date/Time


Thanks for the help - I changed to column C being the trigger for A an
B. I put the code below into the sheet. I get no errors, but nothin
happens in the sheet. Any ideas on what I have missed?

Thanks


Private Sub Sheet1(ByVal Target As Range)
If Target.Columns.Count 3 Then Exit Sub
If Target.Column < 3 Then
Exit Sub
For Each cell In Target
If Not IsEmpty(cell) Then
Cells(Target.Row, "A").Value = Date
Cells(Target.Row, "B").Value = Time
Columns("A:B").AutoFit
End If
Next

End Su

--
GAMOSTEV
-----------------------------------------------------------------------
GAMOSTEVE's Profile: http://www.excelforum.com/member.php...fo&userid=1476
View this thread: http://www.excelforum.com/showthread.php?threadid=26384

 
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
Static Date and Time and VBA editing MilleniumPro New Users to Excel 2 July 24th 09 05:25 AM
embedded static time & date james Excel Worksheet Functions 3 May 17th 09 05:40 PM
static date and time Wanna Learn Excel Discussion (Misc queries) 2 January 29th 09 05:05 PM
how can i set a static date and time in excel ucastores Excel Worksheet Functions 2 June 3rd 06 01:38 AM
Entering static Date/Time GAMOSTEVE Excel Programming 2 September 27th 04 04:30 PM


All times are GMT +1. The time now is 02:39 AM.

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"