DM1
26.02.2017, 16:56
Dobry den, potreboval by som poradit s vytvorenim pravidla pre zmenu formatu vykresoveho listu ( na odporucanie zo starej temy som to riesil cez iLogic) a vyzera to asi takto : trigger = iTrigger0
Vyber_formatu = InputListBox("Formaty", MultiValue.List("Vyber_formatu"), Vyber_formatu, Title := "Formaty", ListName := "Vyber")
If Vyber_formatu = "OramA0" Then
ActiveSheet.ChangeSize("A0", MoveBorderItems := True)
ActiveSheet.Border = "OramA0"
ElseIf Vyber_formatu = "OramA1" Then
ActiveSheet.ChangeSize("A1", MoveBorderItems := True)
ActiveSheet.Border = "OramA1"
ElseIf Vyber_formatu = "OramA2" ThenActiveSheet.ChangeSize("A2", MoveBorderItems := True)
ActiveSheet.Border = "OramA2"ElseIf Vyber_formatu = "OramA3" ThenActiveSheet.ChangeSize("A3", MoveBorderItems := True)
ActiveSheet.Border = "OramA3"
ElseIf Vyber_formatu = "OramA4" ThenActiveSheet.ChangeSize("A4", MoveBorderItems := True)
ActiveSheet.Border = "OramA4"
End IfJe to aj funkcne no potrebujem tam pridat aj podmienku pre zmenu orientacie listu kedze mi ho stale zobrazuje na vysku, a tuto funkciu neviem najst. Vopred dakujem.
Vyber_formatu = InputListBox("Formaty", MultiValue.List("Vyber_formatu"), Vyber_formatu, Title := "Formaty", ListName := "Vyber")
If Vyber_formatu = "OramA0" Then
ActiveSheet.ChangeSize("A0", MoveBorderItems := True)
ActiveSheet.Border = "OramA0"
ElseIf Vyber_formatu = "OramA1" Then
ActiveSheet.ChangeSize("A1", MoveBorderItems := True)
ActiveSheet.Border = "OramA1"
ElseIf Vyber_formatu = "OramA2" ThenActiveSheet.ChangeSize("A2", MoveBorderItems := True)
ActiveSheet.Border = "OramA2"ElseIf Vyber_formatu = "OramA3" ThenActiveSheet.ChangeSize("A3", MoveBorderItems := True)
ActiveSheet.Border = "OramA3"
ElseIf Vyber_formatu = "OramA4" ThenActiveSheet.ChangeSize("A4", MoveBorderItems := True)
ActiveSheet.Border = "OramA4"
End IfJe to aj funkcne no potrebujem tam pridat aj podmienku pre zmenu orientacie listu kedze mi ho stale zobrazuje na vysku, a tuto funkciu neviem najst. Vopred dakujem.