Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 folgendermaen 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? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mazo,
My German is week, but perhaps you request this solution: Range("A3").FormulaR1C1 = "=" & Daten1 & "!R[-2]C" Regards, Stefi mazo ezt *rta: 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? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
wouldn't it be
Range("A3").FormulaR1C1 = "='" & Daten1.Name & "'!R[-2]C" Since daten1 is dimmed as worksheet which doesn't appear to have a default value. -- Regards, Tom Ogilvy "Stefi" wrote: Hi Mazo, My German is week, but perhaps you request this solution: Range("A3").FormulaR1C1 = "=" & Daten1 & "!R[-2]C" Regards, Stefi mazo ezt *rta: 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? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Stefi,
Thank you very much. That helped me a lot. Because "Daten1" is the Worksheet the fomula must be: Range("A3").FormulaR1C1 = "=" & Daten1.Name & "!R[-2]C" Regards |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Add sheet name into a variable. | Excel Worksheet Functions | |||
How To make a sheet reference Variable (eq: sum(sheet!D2:H2)) | Excel Discussion (Misc queries) | |||
selecting sheet name in another workbook by variable (same sheet name) | Excel Programming | |||
Variable sheet and Formula Sheet | Excel Discussion (Misc queries) | |||
variable in a link where the variable is the name of the sheet | Excel Worksheet Functions |