
Private Sub modifica_Click()
Dim irisposta
If TextBox1 = "" Then
MsgBox ("Non hai selezionato nessuna voce"), Title:="Manca selezione"
Exit Sub
End If
ActiveCell = TextBox1.Text
ActiveCell.Offset(0, 1) = TextBox2.Text
ActiveCell.Offset(0, 2) = TextBox3.Text
ActiveCell.Offset(0, 3) = TextBox4.Text
ActiveCell.Offset(0, 4) = TextBox5.Text
ActiveCell.Offset(0, 5) = TextBox6.Text
ActiveCell.Offset(0, 6) = TextBox7.Text
ActiveCell.Offset(0, 7) = TextBox8.Text
ActiveCell.Offset(0, 9) = TextBox9.Text
MsgBox ("Modifica eseguita correttamente"), Title:="Modifica inserzione!"
End Sub |
Ma sarà più chiaro quando questa sera allegherò il file. |
| scossa's web site |
| Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
| scossa's web site |
| Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
| scossa's web site |
| Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
Private Sub UserForm_Initialize()
Dim x
Dim y
Dim area
x = Range("B4").CurrentRegion.Rows.Count + 5
y = Range("B4").CurrentRegion.Columns.Count
area = Range(Cells(5, 1), Cells(x, y)).Address
'ListBox1.RowSource = area
ListBox1.List = ThisWorkbook.Worksheets("inventario").Range(area).Value
ComboBox1.List = Range("inventario!C5:C2000").Value
End Sub |
