
Sub Prova2()
pippo = MsgBox("ciao! Vuoi proseguire ?", vbYesNo)
If pippo = vbYes Then
MsgBox "Pippo"
Else
MsgBox "Ciao !!!"
End Sub |
pec = MsgBox("Vuoi andare nel sistema P.E.C. per la spedizone della e-mail?", vbInformation + vbYesNo, "Spedizione e-mail")
If pec = vbYes Then
userform1.show 'pec = "percorso internet di outlook"
End If
end sub |
dim pec as string
pec = MsgBox("Vuoi andare nel sistema P.E.C. per la spedizone della e-mail?", vbInformation + vbYesNo, "Spedizione e-mail")
If pec = vbYes Then
pec = "percorso outlook"
End If
End Sub |
Sub m()
Const URL = "www.excelvba.it"
Dim IE As Object
pec = MsgBox("Vuoi andare nel sistema P.E.C. per la spedizone della e-mail?", vbInformation + vbYesNo, "Spedizione e-mail")
If pec = vbYes Then
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate URL
IE.Visible = True
End If
End Sub |
Sub m()
Dim IE As Object
Const URL = "h t t p s: //www.microsoft.com/it-it/outlook-com/"
pec = MsgBox("Vuoi andare nel sistema P.E.C. per la spedizone della e-mail?", vbInformation + vbYesNo, "Spedizione e-mail")
If pec = vbYes Then
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate URL
IE.Visible = True <<<<===========
End If
End Sub |
'rimuovere gli spazi in "h t t p"
shell("Chrome.exe -url h t t p:google.it") |
