Belli Bir Kullanıcıya Ait Masaüstü Klasörünün Tam Yolunu Ver - Microsoft Excel


İlgili Windows kullanıcısına ait masaüstü klasörünün tam yolunu veren VBA kodudur.

Kod


Option Explicit

Sub BelliBirKullaniciyaAitMasaustuKlasorununTamYolunuVer()
    Dim wScriptShell As Object
    Set wScriptShell = CreateObject("WScript.Shell")
    
    MsgBox "Masaüstü Tam Yol: " & vbCrLf & _
    wScriptShell.SpecialFolders("Desktop")
    
    Set wScriptShell = Nothing
End Sub

Etiketler
microsoft excel microsoft excel vba microsoft excel vba dosya klasör işlemleri