Merhabalar;
Aşağıdaki makro ile butona bastığımda açacağım adresi "İnternet Explorer" ile açıyor. Bun adresi devamlı olarak Google Chromeile açabilir miyiz ?
Private Sub CommandButton12_Click()
ActiveWorkbook.FollowHyperlink _
Address:="https://ebys.ogm.gov.tr/edys-web/sistemeGiris.xhtml"
End Sub
Sub dene()
hedef = ThisWorkbook.Path & "\" & "Ortak" & "\" & [C5].Value & ".pdf"
ActiveWorkbook.FollowHyperlink hedef
Sheets("register").[c1] = hedef
End Sub
Üstad çok teşekkürler ...
Birşey daha sormak istiyorum,
on error goto 10 satırı ile dosya yoksa C2 hücresine dosya yok" yazdırıyorum...
...< 6 Then Exit Sub
Dosyasonu = Right(strDocument, Len(strDocument) - InStrRev(strDocument, "\"))
ActiveWorkbook.FollowHyperlink strDocument
Range("a1").Select
If Range("M15").Value <> "MALATYA" Then
MsgBox ("Lütfen doğru liste seçiniz..."), vbCritical, "Hatalı Liste..."...
...< 6 Then Exit Sub
Dosyasonu = Right(strDocument, Len(strDocument) - InStrRev(strDocument, "\"))
ActiveWorkbook.FollowHyperlink strDocument
Range("a1").Select
If Range("M15").Value <> "MALATYA" Then
MsgBox ("Lütfen doğru liste seçiniz..."), vbCritical, "Hatalı...
...pth & "*" & Target.Value & "*.pdf"
dosya = Dir(fname)
If dosya <> "" Then
dosya = pth & dosya
ActiveWorkbook.FollowHyperlink dosya
Else
MsgBox "Dosya Bulunamadı..."
End If
End Sub
Yukarıdaki kod ile belirtilen dosya içirisinde A sutununda yazılı olup...
...= pth & Target.Value & "*.pdf"
dosya = Dir(fname)
If dosya <> "" Then
dosya = pth & dosya
ActiveWorkbook.FollowHyperlink dosya
Else
MsgBox "Dosya Bulunamadı..."
End If
End Sub
Yukarıdaki kodla F sutundaki hücrede bulunan zemin nosuna ait Pdf yi...
...If Dosya <> "" Then
Dosya = pth & Dosya
For X = 0 To UBound(TR_Karakter)
Dosya = Replace(Dosya, TR_Karakter(X), EN_Karakter(X), , , vbTextCompare)
Next
ActiveWorkbook.FollowHyperlink Dosya
Else
MsgBox "Dosya bulunamadı!"
End If
End Sub
ActiveWorkbook.FollowHyperlink dosya
satırını
ActiveWorkbook.FollowHyperlink fname
ile değiştirip dener misiniz?
Bende İngilizce olmadığı için deneyemiyorum.
Kodlarda bundan başka bir sorun görünmüyor.
Eğer yukarıdaki gibi yaptıktan sonra çalışırsa şu satırı da silebilirsiniz.
dosya = pth &...
...pth & "*" & Target.Value & "*.pdf"
dosya = Dir(fname)
If dosya <> "" Then
dosya = pth & dosya
ActiveWorkbook.FollowHyperlink dosya
Else
MsgBox "Dosya Bulunamadı..."
End If
End Sub
Yukarıdaki Sn. veyselemre hocamın kodları ile evimdeki türkçe windows...
...Cancel = True
If Target.Column <> 6 Or Target.Value = "" Then Exit Sub
pth = "C:\Users\Tomson\Desktop\TOMSON\"
fname = pth & "*" & Target.Value & "*" & ".pdf"
If Dir(fname) = "" Then
ActiveWorkbook.FollowHyperlink fname
End Sub
bu şekilde denedim ama hata verdi.
...Target As Range, Cancel As Boolean)
Cancel = True
If Target.Column <> 6 Or Target.Value = "" Then Exit Sub
pth = ThisWorkbook.Path & "\parsel\"
fname = pth & Target.Value
If Dir(fname) <> "" Then
ActiveWorkbook.FollowHyperlink fname
End If
End Sub
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.