Boa noite!!
Caso dê por solucionado, favor marcar como resolvido!
obrigado!!
Tem um exemplo... http://www.vbaexpress.com/kb/getarticle.php?kb_id=341
Option Explicit
'<< OPEN THE CLEAN UP MANAGER >>
Sub StartCleanUpManager()
On Error Goto 1
'ActiveWorkbook.FollowHyperlink "c:WindowsSystem32Cleanmgr.exe", _
'NewWindow:=True '< for WinXP
ActiveWorkbook.FollowHyperlink "c:WindowsCleanmgr.exe", NewWindow:=True
Exit Sub
1: MsgBox Err.Description
End Sub
'<< START DISC DEFRAGMENTER >>
Sub StartDefrag()
On Error Goto 1
'ActiveWorkbook.FollowHyperlink "c:WindowsSystem32Defrag.exe", _
'NewWindow:=True '< for WinXP
ActiveWorkbook.FollowHyperlink "c:WindowsDefrag.exe", NewWindow:=True
Exit Sub
1: MsgBox Err.Description
End Sub
'<< OPEN A WORD DOCUMENT >>
Sub OpenWord()
On Error Goto 1
ActiveWorkbook.FollowHyperlink (ActiveWorkbook.Path & "TestDoc.doc"), NewWindow:=True
Exit Sub
1: MsgBox Err.Description
End Sub
'<< OPEN ANYTHING >>
Sub OpenWindowsExplorer()
On Error Goto 1
ActiveWorkbook.FollowHyperlink "C:Windowsexplorer.exe", NewWindow:=True
Exit Sub
1: MsgBox Err.Description
End Sub
'<< OPEN AN ACCESS DATABASE >>
Sub OpenDatabase()
On Error Goto 1
ActiveWorkbook.FollowHyperlink ActiveWorkbook.Path & _
"Testdb.mdb", NewWindow:=True
Exit Sub
1: MsgBox Err.Description
End Sub
'<< OPEN A PDF DOCUMENT >>
Sub OpenPDFdoc()
MsgBox "This will fail if you don't have Adobe Acrobat installed :o)"
On Error Goto 1
ActiveWorkbook.FollowHyperlink ActiveWorkbook.Path & _
"AA cover.pdf", NewWindow:=True
Exit Sub
1: MsgBox Err.Description
End Sub
'<< OPEN A WEB PAGE >>
Sub OpenWebPage()
On Error Goto 1
ActiveWorkbook.FollowHyperlink "http://www.vbaexpress.com/portal.php", NewWindow:=True
Exit Sub
1: MsgBox Err.Description
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 11/03/2012 4:36 pm