Thema Datum  Von Nutzer Rating
Antwort
04.03.2018 21:15:14 Hannah
NotSolved
05.03.2018 08:20:04 Gast70117
**
Solved
05.03.2018 11:18:59 Hannah
NotSolved
05.03.2018 17:06:44 Gast70117
*****
Solved
06.03.2018 15:35:14 Hannah
NotSolved
13.03.2018 10:31:54 Julian
NotSolved
13.03.2018 11:05:30 Gast70117
NotSolved
13.03.2018 11:38:05 Julian
NotSolved
13.03.2018 11:38:05 Julian
NotSolved
Blau Automatische Tagesübersicht
13.03.2018 11:47:43 Gast70117
NotSolved
13.03.2018 12:10:26 Julian
NotSolved
13.03.2018 12:38:07 Gast70117
NotSolved
13.03.2018 14:17:08 Julian
NotSolved

Ansicht des Beitrags:
Von:
Gast70117
Datum:
13.03.2018 11:47:43
Views:
588
Rating: Antwort:
  Ja
Thema:
Automatische Tagesübersicht
Option Explicit
'
'all code as an event procedure in the table class
'
Private Sub Workbook_Open()
'in case check current date and copy given column
DoIt
End Sub

Private Sub DoIt()
Dim c As Range, ToDo As Range

With Sheets("Tabelle1")
   Set c = .Rows(1).Find(Date, , xlValues)
   If Not c Is Nothing Then
      If c.End(xlDown).Row = .Rows.Count Then
         'either
         Set ToDo = .Range(.Cells(2, 2), .Cells(.Rows.Count, 2).End(xlUp))
         ToDo.Copy c.Offset(1)
         'or
         'ToDo.Copy
         'c.Offset(1).PasteSpecial Paste:=xlPasteValues, _
         'Operation:=xlNone, SkipBlanks:=False, Transpose:=False
         'Application.CutCopyMode = False
         '
         Call MsgBox("Copied specified column to " & CStr(Date), vbInformation, "current date detected")
      Else
         Call MsgBox("Column " & CStr(Date) & " already contains data", vbInformation, "no execution")
      End If
   End If
End With

End Sub

 


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
04.03.2018 21:15:14 Hannah
NotSolved
05.03.2018 08:20:04 Gast70117
**
Solved
05.03.2018 11:18:59 Hannah
NotSolved
05.03.2018 17:06:44 Gast70117
*****
Solved
06.03.2018 15:35:14 Hannah
NotSolved
13.03.2018 10:31:54 Julian
NotSolved
13.03.2018 11:05:30 Gast70117
NotSolved
13.03.2018 11:38:05 Julian
NotSolved
13.03.2018 11:38:05 Julian
NotSolved
Blau Automatische Tagesübersicht
13.03.2018 11:47:43 Gast70117
NotSolved
13.03.2018 12:10:26 Julian
NotSolved
13.03.2018 12:38:07 Gast70117
NotSolved
13.03.2018 14:17:08 Julian
NotSolved