Thema Datum  Von Nutzer Rating
Antwort
27.01.2018 10:56:30 Jochen
NotSolved
27.01.2018 12:26:31 Mackie
NotSolved
27.01.2018 14:43:49 Jochen
NotSolved
27.01.2018 17:24:28 Mackie
NotSolved
27.01.2018 17:28:20 Mackie
NotSolved
27.01.2018 17:22:57 Mackie
NotSolved
27.01.2018 18:27:40 Gast8662
NotSolved
27.01.2018 18:29:03 Jochen
NotSolved
27.01.2018 18:29:47 Mackie
NotSolved
27.01.2018 18:30:52 Mackie
NotSolved
Rot Datenbank erstellen mit VBA
27.01.2018 21:25:30 Jochen
NotSolved
27.01.2018 21:55:11 Mackie
NotSolved
27.01.2018 23:22:30 Jochen
NotSolved

Ansicht des Beitrags:
Von:
Jochen
Datum:
27.01.2018 21:25:30
Views:
618
Rating: Antwort:
  Ja
Thema:
Datenbank erstellen mit VBA

Gute Idee - Danke.

Hier der Link:

 

https://www.dropbox.com/s/sccc6vx9ygi7q1d/Unionhttps://www.dropbox.com/s/sccc6vx9ygi7q1d/Union.xlsm?dl=0.xlsm?dl=0

und hier der Code nochmal:

Option Explicit
 
Private Sub Button_übernehmen_Click()
 
    Dim x As Long
    Dim max As Long
    For x = 1 To 366 'erste leere Zeile finden und in max speichern
    
        ThisWorkbook.Sheets("GESAMT").Cells(x, 2) = TextBox_GESAMT.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 2) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 2) = TextBox_GESAMT.Value
        
        ThisWorkbook.Sheets("GESAMT").Cells(x, 5) = TextBox_UniProfiRente.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 5) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 5) = TextBox_UniProfiRente.Value
    
        ThisWorkbook.Sheets("GESAMT").Cells(x, 8) = TextBox_UniFonds.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 8) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 8) = TextBox_UniFonds.Value
        
        ThisWorkbook.Sheets("GESAMT").Cells(x, 11) = TextBox_PrivatFonds.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 11) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 11) = TextBox_PrivatFonds.Value
        
        ThisWorkbook.Sheets("GESAMT").Cells(x, 14) = TextBox_UniRak.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 14) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 14) = TextBox_UniRak.Value
    
        ThisWorkbook.Sheets("GESAMT").Cells(x, 17) = TextBox_UniDividendenAss.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 17) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 17) = TextBox_UniDividendenAss.Value
    
        ThisWorkbook.Sheets("GESAMT").Cells(x, 20) = TextBox_UniFavorit.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 20) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 20) = TextBox_UniFavorit.Value
    
        ThisWorkbook.Sheets("GESAMT").Cells(x, 23) = TextBox_UniFonds2.Text
        If ThisWorkbook.Sheets("GESAMT").Cells(x, 23) <> "" Then
        Else: ThisWorkbook.Sheets("GESAMT").Cells(x + 1, 23) = TextBox_UniFonds2.Value
    
            max = x
            Exit For
            
        End If
        
    Next x
    ActiveSheet.Cells(max, 2) = TextBox_GESAMT
    ActiveSheet.Cells(max, 5) = TextBox_UniProfiRente
    ActiveSheet.Cells(max, 8) = TextBox_UniFonds
    ActiveSheet.Cells(max, 11) = TextBox_PrivatFonds
    ActiveSheet.Cells(max, 14) = TextBox_UniRak
    ActiveSheet.Cells(max, 17) = TextBox_UniDividendenAss
    ActiveSheet.Cells(max, 20) = TextBox_UniFavorit
    ActiveSheet.Cells(max, 23) = TextBox_UniFonds2
 
End Sub
 
Private Sub UserForm_Initialize()
 
'GESAMT
TextBox_GESAMT = "GESAMT eingeben"
 
'UniProfiRente
TextBox_UniProfiRente = "UniProfiRente eingeben"
 
'UniFonds
TextBox_UniFonds = "UniFonds eingeben"
 
'PrivatFonds
TextBox_PrivatFonds = "PrivatFonds___ Kontrolliert pro eingeben"
 
'UniRak
TextBox_UniRak = "UniRak -net- eingeben"
 
'UniDividendenAss
TextBox_UniDividendenAss = "UniDividendenAss -net- eingeben"
 
'UniFavorit
TextBox_UniFavorit = "UniFavorit___Aktien -net- eingeben"
 
'UniFonds2
TextBox_UniFonds2 = "UniFonds_2 eingeben"
 
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
27.01.2018 10:56:30 Jochen
NotSolved
27.01.2018 12:26:31 Mackie
NotSolved
27.01.2018 14:43:49 Jochen
NotSolved
27.01.2018 17:24:28 Mackie
NotSolved
27.01.2018 17:28:20 Mackie
NotSolved
27.01.2018 17:22:57 Mackie
NotSolved
27.01.2018 18:27:40 Gast8662
NotSolved
27.01.2018 18:29:03 Jochen
NotSolved
27.01.2018 18:29:47 Mackie
NotSolved
27.01.2018 18:30:52 Mackie
NotSolved
Rot Datenbank erstellen mit VBA
27.01.2018 21:25:30 Jochen
NotSolved
27.01.2018 21:55:11 Mackie
NotSolved
27.01.2018 23:22:30 Jochen
NotSolved