Thema Datum  Von Nutzer Rating
Antwort
02.12.2020 00:02:43 Karl
NotSolved
02.12.2020 08:26:16 Gast14581
NotSolved
02.12.2020 08:29:17 Karl
NotSolved
02.12.2020 09:30:51 Gast23112
NotSolved
02.12.2020 09:37:30 Karl
NotSolved
02.12.2020 09:48:19 Gast55419
NotSolved
02.12.2020 09:51:55 Karl
NotSolved
02.12.2020 10:06:21 Gast99126
NotSolved
02.12.2020 10:31:36 Karl
NotSolved
02.12.2020 10:42:50 Gast27836
NotSolved
02.12.2020 10:49:51 Gast77838
NotSolved
02.12.2020 10:55:26 Gast76161
NotSolved
Rot VBA Name als String übertragen?
02.12.2020 11:08:02 Karl
NotSolved
02.12.2020 11:47:44 Gast41137
NotSolved
02.12.2020 16:41:07 Gast47372
NotSolved
02.12.2020 16:49:07 Gast47372
Solved
05.12.2020 11:14:21 Karl
NotSolved

Ansicht des Beitrags:
Von:
Karl
Datum:
02.12.2020 11:08:02
Views:
714
Rating: Antwort:
  Ja
Thema:
VBA Name als String übertragen?

Anbei die originale Formel, sie ist doch ein wenig komplexer. Sie funktioniert, bis auf das Makro aufrufen über par1.

Sub Prüfung_Berechnung(par1, par2, par3, par4, par5, par6, par7, par8 As String)


With Worksheets("Sheet1")

If .Range("KX5").Value = 1440 Then
   For s = .Range("LA1").Column To .Range("BOJ1").Column
   For s2 = .Range("BQC1").Column To .Range("DTL1").Column
   If .Cells(10, s).Value > "" Then
   .Cells(par6, s2).Value = .Cells(10, s).Value
   End If
   Next
   Next
   
   For s = .Range("LA1").Column To .Range("BOJ1").Column
   For s2 = .Range("BQC1").Column To .Range("DTL1").Column
   If .Cells(12, s).Value > "" Then
   .Cells(par7, s2).Value = .Cells(12, s).Value
   End If
   Next
   Next
   
   For s = .Range("LA1").Column To .Range("BOJ1").Column
   For s2 = .Range("BQC1").Column To .Range("DTL1").Column
   If .Cells(13, s).Value > "" Then
   .Cells(par8, s2).Value = .Cells(13, s).Value
   End If
   Next
   Next
   
   For s2 = .Range("BQC1").Column To .Range("DTL1").Column
   If .Cells(1, s2).Value >= .Range(par2).Value And _
   .Cells(1, s2).Value <= .Range(par3).Value And _
   .Cells(par7, s2).Value = "" Then
   .Cells(par4, s2).Value = 1
   Else
   .Cells(par4, s2).Value = 0
   End If
   Next
   
   Call Auftrag_Ende
   
Else: Call par1
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
02.12.2020 00:02:43 Karl
NotSolved
02.12.2020 08:26:16 Gast14581
NotSolved
02.12.2020 08:29:17 Karl
NotSolved
02.12.2020 09:30:51 Gast23112
NotSolved
02.12.2020 09:37:30 Karl
NotSolved
02.12.2020 09:48:19 Gast55419
NotSolved
02.12.2020 09:51:55 Karl
NotSolved
02.12.2020 10:06:21 Gast99126
NotSolved
02.12.2020 10:31:36 Karl
NotSolved
02.12.2020 10:42:50 Gast27836
NotSolved
02.12.2020 10:49:51 Gast77838
NotSolved
02.12.2020 10:55:26 Gast76161
NotSolved
Rot VBA Name als String übertragen?
02.12.2020 11:08:02 Karl
NotSolved
02.12.2020 11:47:44 Gast41137
NotSolved
02.12.2020 16:41:07 Gast47372
NotSolved
02.12.2020 16:49:07 Gast47372
Solved
05.12.2020 11:14:21 Karl
NotSolved