Diskuze: program visual basic excel
Zobrazeno 5 zpráv z 5.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
nevím jestli je to čitelné, projistotu přikládám jako text co jsem vytvořila...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim cisla(2) As Integer
If Not Integer.TryParse(Textbox1.Text, cisla(0)) _
Or Not Integer.TryParse(Textbox2.Text, cisla(1)) _
Or Not Integer.TryParse(Textbox3.Text, cisla(2)) Then
MessageBox.Show("Zadej celociselne hodnoty!")
Exit Sub
End If
Array.Sort(cisla)
Textbox4.Text = cisla(2).ToString()
Textbox5.Text = cisla(1).ToString()
Textbox6.Text = cisla(0).ToString()
End Sub
Špatně je to že v tvojej ukážke je použitý VB.Net Program máš napísať a skúšaš ho v Excel VBA.
Aha a můžeš mi poradit jak to udělat aby mi to fungovalo v MS excel? já opravdu nevim jak na to :/
Tu je odkaz na video na youtube, ako sa programuje v Excel VBA. Pozri si to. Je to pre začiatočníkov.
Zobrazeno 5 zpráv z 5.