Thema Datum  Von Nutzer Rating
Antwort
29.09.2013 15:59:56 Jörg
NotSolved
29.09.2013 17:27:02 Holger
NotSolved
29.09.2013 18:00:12 Jörg
NotSolved
29.09.2013 23:45:04 Gast6677
NotSolved
Rot Problem mit Variablen in Sverweis
30.09.2013 15:37:12 Jörg
NotSolved
30.09.2013 18:25:39 Gast71176
NotSolved
01.10.2013 13:10:50 Jörg
NotSolved
01.10.2013 14:52:16 Gast38243
NotSolved
02.10.2013 00:06:16 Jörg
NotSolved
02.10.2013 03:03:09 Gast75873
NotSolved
02.10.2013 14:20:42 Jörg
NotSolved
02.10.2013 16:46:36 Gast58115
NotSolved
02.10.2013 20:04:25 Jörg
NotSolved
02.10.2013 23:48:56 Gast12290
NotSolved
05.10.2013 14:48:47 Gast43599
NotSolved
02.10.2013 16:52:56 Gast78404
NotSolved
02.10.2013 20:05:25 Jörg
NotSolved
03.10.2013 11:48:05 Jörg
Solved
03.10.2013 12:39:17 Gast42493
NotSolved
05.10.2013 12:44:44 Jörg
NotSolved
05.10.2013 14:35:03 Gast37407
NotSolved

Ansicht des Beitrags:
Von:
Jörg
Datum:
30.09.2013 15:37:12
Views:
901
Rating: Antwort:
  Ja
Thema:
Problem mit Variablen in Sverweis

Hallo

Vielen Dank für die Rückmeldung. Ich habe den Vorschlag beherzigt und die Formel in eine Variable gepackt.

Leider schaffe ich es immer noch nicht, das Tabellenblatt (Tab1) als Variable (d) in der Formel zu definieren, der Rest klappt nun.

So müsste das Resultat der Formel aussehen:

=SVERWEIS(A:A;Tab1!A1:B5;2;0) 

Für Eure Unterstützung wäre ich sehr dankbar.

Viele Grüsse,
Jörg

 

Sub Makro1()

Dim a As Long
Dim b As Long
Dim c As Long
Dim d As Variant

Dim strPA As String

  a = -1
  b = 4
  c = 2
  d = Tab1
 
    
    strPA = "=VLOOKUP(C[-1]," & d & "!RC[" & a & "]:R[" & b & "]C," & c & ",0)"   '
      
    MsgBox strPA
    Range("B1") = strPA
      
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
29.09.2013 15:59:56 Jörg
NotSolved
29.09.2013 17:27:02 Holger
NotSolved
29.09.2013 18:00:12 Jörg
NotSolved
29.09.2013 23:45:04 Gast6677
NotSolved
Rot Problem mit Variablen in Sverweis
30.09.2013 15:37:12 Jörg
NotSolved
30.09.2013 18:25:39 Gast71176
NotSolved
01.10.2013 13:10:50 Jörg
NotSolved
01.10.2013 14:52:16 Gast38243
NotSolved
02.10.2013 00:06:16 Jörg
NotSolved
02.10.2013 03:03:09 Gast75873
NotSolved
02.10.2013 14:20:42 Jörg
NotSolved
02.10.2013 16:46:36 Gast58115
NotSolved
02.10.2013 20:04:25 Jörg
NotSolved
02.10.2013 23:48:56 Gast12290
NotSolved
05.10.2013 14:48:47 Gast43599
NotSolved
02.10.2013 16:52:56 Gast78404
NotSolved
02.10.2013 20:05:25 Jörg
NotSolved
03.10.2013 11:48:05 Jörg
Solved
03.10.2013 12:39:17 Gast42493
NotSolved
05.10.2013 12:44:44 Jörg
NotSolved
05.10.2013 14:35:03 Gast37407
NotSolved