
Dim Counter As Integer
ProgressBar1.Visible = True
Dim Workarea(5000) As String
ProgressBar1.Min = LBound(Workarea)
ProgressBar1.Max = UBound(Workarea)
ProgressBar1.Value = ProgressBar1.Min
For Counter = LBound(Workarea) To UBound(Workarea)
ProgressBar1.Value = Counter
Next Counter
End Sub |
Grazie gargiu per la risposta, però, non essendo competente, non riesco a capire come procedere. Al momento avvio la macro non da un form ma da un semplice pulsante. Devo creare una userform e inserire una ProgressBar? Se si, puoi aiutarmi a crearla o se hai un semplice file di esempio da inserire? Grazie mille |
Sub LINK_EMAIL()
UserForm1.Show
Application.ScreenUpdating = False
Application.EnableEvents = False
r = Range("o" & Rows.Count).End(xlUp).Row + 1 'imposta la prima riga vuota su cui scrivere
r1 = 2
For Each ctl In Range("o2", "o" & r)
If InStr(1, ctl.Text, "@") > 0 Then
ActiveSheet.Hyperlinks.Add Cells(r1, "o"), "mailto:" & ctl.Text & "", , , ctl.Text
ctl.Font.Size = 8
ctl.Font.Name = "arial"
End If
r1 = r1 + 1
Next
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
Private Sub UserForm_Activate()
Me.ProgressBar1.Max = 100
Me.ProgressBar1.Min = 0
For i = 1 To 100
Me.ProgressBar1 = i
Application.Wait Now + TimeSerial(0, 0, 1)
Next i
'MsgBox "Operazione conclusa!", vbInformation, Title:=""
Unload Me
End Sub
|
Application.ScreenUpdating = False
Application.EnableEvents = False
r = Range("o" & Rows.Count).End(xlUp).Row + 1 'imposta la prima riga vuota su cui scrivere
r1 = 2
For Each ctl In Range("o2", "o" & r)
If InStr(1, ctl.Text, "@") > 0 Then
ActiveSheet.Hyperlinks.Add Cells(r1, "o"), "mailto:" & ctl.Text & "", , , ctl.Text
ctl.Font.Size = 8
ctl.Font.Name = "arial"
End If
r1 = r1 + 1
Next
Application.ScreenUpdating = True
Application.EnableEvents = True
UserForm1.Show |
