<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>mwvirk's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/537284/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user mwvirk.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 15:59:17 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Help to solve VBA Script for Excel</title>
      <link>http://www.programmersheaven.com/mb/vba/422390/422390/ReadMessage.aspx#422390</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/vba/422390/422390/ReadMessage.aspx#422390"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/vba/Board.aspx"&gt;VBA&lt;/a&gt; forum.&lt;/p&gt;I have drop down menu in I4 with around 15+ different options (type of problems). based on selection there are two outputs in cell K4 (full / partial) and its so far working fine.&lt;br /&gt;
&lt;br /&gt;
i need to go further more advance and as soon as i select option in I4 it should give me present date in L4 and N4 present time, (when issue was reported) (these dates and time should not change at all. even i open my sheet after months) - then in W4 a timer should start from 00:00:00&lt;br /&gt;
(all should done immediately after selecting the option from drop down menu in I4 - only M4 will be entered manually)&lt;br /&gt;
then user will be entering the actual time in M4 when problem was started. &lt;br /&gt;
&lt;br /&gt;
it is 100% sure that user might noticed problem after 5 or 10 or 30 minutes. lets say user noticed it after 10 min - since timer was started from 00:00:00 and M4 was updated 10 min after the actual problem, then timer in W4 should updated like 00:10:00&lt;br /&gt;
&lt;br /&gt;
now coming to resolve the problem. in U4 user will manually enter the time when problem was resolved (assuming that user was informed late - so, need manual time entry here) Once user enter U4 with time, V4 should be filled up will present date (and shouldn't be changed by closing/opening the sheet later)&lt;br /&gt;
&lt;br /&gt;
and finally W4 should be updated from time when problem was started and when it was resolved. (need to take those 2 times which were manually entered by user in M4 and U4)&lt;br /&gt;
&lt;br /&gt;
i got 250 types of machines so i need same script/macro for all rows. it is also possible that 1 machine is down twice or more than that, in 1 day. so user is copying/pasting(inserting) row.&lt;br /&gt;
&lt;br /&gt;
see atched file... i have highlighted and put comments there also.&lt;br /&gt;
&lt;br /&gt;
as per below script, when there is value in cell 'I' it will add current date in cell 'L' and time in cell 'N' - can someone pls update the following script so i can get the running clock starting from 00:00:00 in cell 'W'&lt;br /&gt;
&lt;br /&gt;
but there is one problem in the script. it is going till end of the sheet. i want something like: when selecting the drop down menu in 'I' --- script should check that row range 'A' (where model of the machines are entered) is not blank - if blank then script should not fill any cell and I row shouldn't be accepted.&lt;br /&gt;
&lt;br /&gt;
here is my script:&lt;br /&gt;
================================================== =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Option Explicit&lt;br /&gt;
&lt;br /&gt;
Private Sub Worksheet_Change(ByVal Target As Range)&lt;br /&gt;
Dim irow As Long&lt;br /&gt;
If Not Intersect(Target, Range("I:I")) Is Nothing Then&lt;br /&gt;
On Error Resume Next&lt;br /&gt;
Application.EnableEvents = False&lt;br /&gt;
irow = Target.Row&lt;br /&gt;
'if there is a date in column L end the macro&lt;br /&gt;
&lt;br /&gt;
If IsEmpty(Target) Then&lt;br /&gt;
Target.Offset(0, 3).ClearContents&lt;br /&gt;
Target.Offset(0, 5).ClearContents&lt;br /&gt;
GoTo EndProc&lt;br /&gt;
End If&lt;br /&gt;
If IsDate(Target.Offset(0, 3)) Then GoTo EndProc&lt;br /&gt;
Target.Offset(0, 3) = Date&lt;br /&gt;
Target.Offset(0, 5) = Time&lt;br /&gt;
End If&lt;br /&gt;
EndProc:&lt;br /&gt;
Application.EnableEvents = True&lt;br /&gt;
End Sub &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/vba/422390/422390/ReadMessage.aspx#422390</guid>
      <pubDate>Sat, 12 Mar 2011 07:16:34 -0700</pubDate>
    </item>
  </channel>
</rss>