ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Want to Open Windows Explorer With an Excel Macro (https://www.excelbanter.com/excel-programming/340570-want-open-windows-explorer-excel-macro.html)

johan

Want to Open Windows Explorer With an Excel Macro
 
Dear all,

With a button I want to open Windows Explorer in a specific folder with
an Excel macro.
For example : I want to open Windows Explorer and show me the folder
C:\Apps.

Can somebody help me (please) with a complete code.

Regards,
Johan


ste

Want to Open Windows Explorer With an Excel Macro
 
Hi Johan,

this is just a sample and needs some edit but it works

Function OpenDWG() As String
Dim F As FileDialog
Set F = Application.FileDialog(msoFileDialogOpen)
Dim Fdf As FileDialogFilter
With F
.Filters.Clear
.Filters.Add "ACAD file", "*.dwg"
If .Show = -1 Then
OpenDWG = F.SelectedItems(1)
Else
End If
End With

End Function


Bob Phillips[_6_]

Want to Open Windows Explorer With an Excel Macro
 
shell "explorer C:\Apps"


--
HTH

Bob Phillips

"johan" wrote in message
oups.com...
Dear all,

With a button I want to open Windows Explorer in a specific folder with
an Excel macro.
For example : I want to open Windows Explorer and show me the folder
C:\Apps.

Can somebody help me (please) with a complete code.

Regards,
Johan





All times are GMT +1. The time now is 01:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com