using sheet-variable in function

M

m.zeiler

Hallo

Ich habe folgendes Problem:


Ich habe der Tabelle_xy die Variable "Daten1" zugewiesen


(Dim Daten1 As Worksheet
Set Daten1 = ActiveSheet)


Eine Formel, die von einem anderen Sheet auf Tabelle_xy (bzw.Daten1)
zugreifen soll
sieht folgendermaßen aus:


Range("A3").FormulaR1C1 = "='Tabelle_xy'!R[-2]C"


Wie kann ich "Tabellexy" in dieser Formel durch die Variabel "Daten1"
ersetzen, so dass die Formel funktioniert?
 
B

Bob Phillips

microsoft.public.de.excel

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

Hallo

Ich habe folgendes Problem:


Ich habe der Tabelle_xy die Variable "Daten1" zugewiesen


(Dim Daten1 As Worksheet
Set Daten1 = ActiveSheet)


Eine Formel, die von einem anderen Sheet auf Tabelle_xy (bzw.Daten1)
zugreifen soll
sieht folgendermaßen aus:


Range("A3").FormulaR1C1 = "='Tabelle_xy'!R[-2]C"


Wie kann ich "Tabellexy" in dieser Formel durch die Variabel "Daten1"
ersetzen, so dass die Formel funktioniert?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top