dim z(1) as string
dim u as integer
u = 1
z(0) = u
z(1) = 2 + u
Sheets(z(1)).Cells(2, 2) = "=List1!R[" & z(1) & "]C[-1]"
netestoval som to ale keby ste davali do sheetu integer tak by to bralo ID sheetu a nie jeho nazov.
preto aj take riesenie som dalcitovat