Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-20-2011, 08:23 AM
Catalin.B Catalin.B is offline HyperLink help please Windows Vista HyperLink help please Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Code:
sub search ()
Dim vFile As Variant, MyPath As String
MyPath = Application.Substitute(ThisWorkbook.Path, "facturi", "chitantiere\", 1) '"\\Flory\D\FACTURI ,CHITANTE VPC\chitantiere"
CreateObject("WScript.Shell").CurrentDirectory = MyPath
       ChDir MyPath
       vFile = Application.GetOpenFilename("Excel Files (*.xl*)," & _
      "*.xl*", 1, "Select Excel File", "Open", False)
end sub
if you want all types of files to show simply use Application.GetOpenFileName()
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
HyperLink help please Hyperlink Mahmuz Word 2 05-04-2011 10:59 AM
Followed hyperlink question dth122 PowerPoint 0 06-06-2010 07:15 PM
Hyperlink Warning gfkbob Outlook 0 01-23-2010 06:50 AM
Hyperlink ltvjim Outlook 0 03-28-2007 10:28 AM
hyperlink scuba32 Word 0 08-24-2006 07:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft