Excel'de internet sayfası açmak

Katılım
13 Haziran 2009
Mesajlar
486
Excel Vers. ve Dili
excel 2007 tr
Public IE As Object
Sub LinkAc()
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True 'True olursa web sayfası görüntülenir.
.Navigate "http://www.excel.web.tr" 'Web adresi açılıyor.
Do Until .ReadyState = 4: DoEvents: Loop
Do While .Busy: DoEvents: Loop
End With
Application.OnTime Now + TimeValue("00:00:10"), "Kapat"
End Sub



Selamlar
Yukarıdaki kod ile İnternet syafası açıyorum,lakin bu kodu Commandutton ile çalıştıramıyorum.
 

hımmmmmmmm

Destek Ekibi
Destek Ekibi
Katılım
10 Temmuz 2011
Mesajlar
601
Excel Vers. ve Dili
2000-2007-2010-2016
slm

böyle çalışıyor

Kod:
Public IE As Object

Private Sub CommandButton1_Click()
LinkAc
End Sub
Sub LinkAc()
Set IE = CreateObject("InternetExplorer.Application")
With IE
  .Visible = True 'True olursa web sayfası görüntülenir.
  .Navigate "http://www.excel.web.tr" 'Web adresi açılıyor.
  'Do Until .ReadyState = 4: DoEvents: Loop
  'Do While .Busy: DoEvents: Loop
End With
 ' Application.OnTime Now + TimeValue("00:00:10"), "Kapat"
End Sub
 
Katılım
13 Haziran 2009
Mesajlar
486
Excel Vers. ve Dili
excel 2007 tr
Teşekkürler kardeşim.
 
Üst