<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Dansk Regneark Forum : Visning af rest tid fra macro til worksheet ?</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Visning af rest tid fra macro til worksheet ?]]></description>
  <pubDate>Sat, 05 Dec 2026 16:35:30 +0000</pubDate>
  <lastBuildDate>Tue, 22 Oct 2013 21:37:55 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.excel-regneark.dk/RSS_post_feed.asp?TID=1368</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Dansk Regneark Forum]]></title>
   <url>https://forum.excel-regneark.dk/css_styles/Excel-regneark.dk/logo.png</url>
   <link>https://forum.excel-regneark.dk/</link>
  </image>
  <item>
   <title><![CDATA[Visning af rest tid fra macro til worksheet ? : Undskyld jeg ikke har svaret dig,...]]></title>
   <link>https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6594.html#6594</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=856">zpjj</a><br /><strong>Emne:</strong> 1368<br /><strong>Sendt:</strong> 22.Okt.2013 kl. 21:37<br /><br />Undskyld jeg ikke har svaret dig, men har været bortrejst et stykke tid.<DIV>Det virker perfekt, og takker mange gange for hjælpen <img src="/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /></DIV>]]>
   </description>
   <pubDate>Tue, 22 Oct 2013 21:37:55 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6594.html#6594</guid>
  </item> 
  <item>
   <title><![CDATA[Visning af rest tid fra macro til worksheet ? :  Pr&#248;v om du kan bruge min versionPrivate...]]></title>
   <link>https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6442.html#6442</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=248">excelent</a><br /><strong>Emne:</strong> 1368<br /><strong>Sendt:</strong> 30.Sep.2013 kl. 18:24<br /><br />Prøv om du kan bruge min version<div>&nbsp;</div><div>Private Sub Workbook_Open()<br>StartTimer<br>End Sub</div><div>&nbsp;</div><div>og i et alm. modul :</div><div>&nbsp;</div><div>Public Test As Double<br>Public flag As Single<br>Public Const minut = 5 '&lt;- angiv antal minutter der skal ventes før luk</div><div>&nbsp;</div><div>Sub StartTimer()<br>Test = TimeSerial(0, minut, 0): flag = False<br>MinTimer<br>End Sub</div><div>&nbsp;</div><div>Sub MinTimer()<br>If flag = True Then Exit Sub<br>Test = Test - TimeSerial(0, 0, 1)<br>If Not ThisWorkbook.Saved Then ThisWorkbook.Saved = True: Test = TimeSerial(0, minut, 0)<br>Application.StatusBar = "Excel lukker ned om..: " &amp; Format(Test, "hh:mm:ss")<br>If Test &gt; 0 Then<br>Application.OnTime Now + TimeSerial(0, 0, 1), Procedure:="MinTimer"<br>End If<br>If Test &lt;= 0 Then ThisWorkbook.Save:&nbsp; Application.Quit<br>End Sub</div><div>&nbsp;</div><div>Sub StopTimer()<br>flag = True ' stop timer før tid uden at lukke<br>End Sub</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 30 Sep 2013 18:24:13 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6442.html#6442</guid>
  </item> 
  <item>
   <title><![CDATA[Visning af rest tid fra macro til worksheet ? : Glemte lige at oplyse, at det...]]></title>
   <link>https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6422.html#6422</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=856">zpjj</a><br /><strong>Emne:</strong> 1368<br /><strong>Sendt:</strong> 27.Sep.2013 kl. 17:43<br /><br />Glemte lige at oplyse, at det er EXCEL 2010 jeg har. <img src="/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" />]]>
   </description>
   <pubDate>Fri, 27 Sep 2013 17:43:55 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6422.html#6422</guid>
  </item> 
  <item>
   <title><![CDATA[Visning af rest tid fra macro til worksheet ? : Hej  Jeg er ny indenfor macro...]]></title>
   <link>https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6407.html#6407</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=856">zpjj</a><br /><strong>Emne:</strong> 1368<br /><strong>Sendt:</strong> 25.Sep.2013 kl. 10:58<br /><br />Hej <DIV>Jeg er ny indenfor macro området, så jeg søger lidt hjælp.</DIV><DIV>Jeg har en macro som autolukker min workbook, hvis den er inaktiv i x antal minutter.</DIV><DIV>Mit problem er:</DIV><DIV>Jeg vil gerne have vist den resterende tid, inden workbook lukkes, i mit worksheet celle(A1)</DIV><DIV>Min autoclose macro ser således ud:</DIV><DIV><strong>THISWORKBOOK</strong></DIV><DIV>Private Sub Workbook_Open()<BR>Føler<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)<BR>Føler<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub Workbook_BeforeClose(Cancel As Boolean)<BR>Stop_Føler<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV><strong>MODUL</strong></DIV><DIV>Const LukNedEfter As String = "00:50:00"<BR>Const GemFørst As Boolean = True</DIV><DIV><BR>Public Tid As Date<BR>Sub Start_Føler()<BR>&nbsp;&nbsp;&nbsp; Tid = Time<BR>&nbsp;&nbsp;&nbsp; On Error Resume Next<BR>&nbsp;&nbsp;&nbsp; Application.OnTime Tid + TimeValue(LukNedEfter), "LukNed"<BR>&nbsp;&nbsp;&nbsp; On Error GoTo 0<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Sub Stop_Føler()<BR>&nbsp;&nbsp;&nbsp; On Error Resume Next<BR>&nbsp;&nbsp;&nbsp; Application.OnTime Tid + TimeValue(LukNedEfter), "LukNed", , False<BR>&nbsp;&nbsp;&nbsp; On Error GoTo 0<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Sub Føler()<BR>&nbsp;&nbsp;&nbsp; On Error Resume Next</DIV><DIV>&nbsp;&nbsp;&nbsp; If ThisWorkbook.ReadOnly = True Then Exit Sub</DIV><DIV>&nbsp;&nbsp;&nbsp; Call Stop_Føler</DIV><DIV>&nbsp;&nbsp;&nbsp; Call Start_Føler<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub LukNed()<BR>&nbsp;&nbsp;&nbsp; If ThisWorkbook.ReadOnly = True Then Exit Sub<BR>&nbsp;&nbsp;&nbsp; ThisWorkbook.Close (GemFørst)<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Please Help <img src="/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 25 Sep 2013 10:58:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/visning-af-rest-tid-fra-macro-til-worksheet_topic1368_post6407.html#6407</guid>
  </item> 
 </channel>
</rss>