Snazim :) Podorali sa mi vyriesit to kopirovanie sice troska zlozitejsie jak si mi napisal ty ale funguje to, upravil som kod co si mi poslal predtym
Dim A As Long
Dim B As Date
Dim C As String
B = Sheets("vzor").Range("B18").Value 'datum a cas zadania
A = Sheets("vzor").Range("B4").Value 'ciso testingu
C = Sheets("vzor").Range("D7").Text 'segment
Sheets.Add After:=ActiveSheet
ActiveSheet.Name = B & "-TR-" & A & "-" & C
Dim rdF As Byte, rdR As Long, rdLast As Long, rdW As Long, slR As Byte
slR = 10
rdW = 0
With Sheets("vzor")
Range(.Cells(1, 1), .Cells(1, slR)).Copy
ActiveSheet.Cells(1, 1).PasteSpecial Paste:=xlPasteColumnWidths
rdLast = .Cells(Rows.Count, 1).End(xlUp).Row
For rdR = 1 To rdLast
If Not .Rows(rdR).Hidden Then
rdW = rdW + 1
Range(.Cells(rdR, 1), .Cells(rdR, slR)).Copy ActiveSheet.Cells(rdW, 1)
ActiveSheet.Rows(rdW).RowHeight = .Rows(rdR).RowHeight
End If
Next rdR
End With
End Sub
Cez zaznamik som to vkladal ... moja predstava je taka ze bude to chet deklarovat premenne ktore potom zakonponujem do nazvu pri vytvarani hyperlinku ... pravdepodobne premenne typu string ibaze co som ksusal tak nefunguje dik za radu
citovat