+ Reply to Thread
Results 1 to 4 of 4

open browser window at my given location

  1. #1
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Question open browser window at my given location

    through vba only...

    When I click browser button on my userform it opens the default folder of "my documents" to open any excel file

    I need to open the default folder to be = "C:\my project\new" to open file from there...

  2. #2
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Question

    is it possible???

    or my question is not cleared?????

  3. #3
    Mike Fogleman
    Guest

    Re: open browser window at my given location

    Sub Open_Folder()
    Dim MyPath As String
    Dim SaveDriveDir As String
    Dim FName As Variant

    SaveDriveDir = CurDir
    MyPath = "C:\my project\new"
    ChDrive MyPath
    ChDir MyPath
    FName = Application.GetOpenFilename(filefilter:="Excel Files (*.xls),
    *.xls", _
    MultiSelect:=False)
    'Do whatever you need to do with file....
    ChDrive SaveDriveDir
    ChDir SaveDriveDir
    End Sub

    This should get you started,
    Mike F

    "ilyaskazi" <[email protected]> wrote
    in message news:[email protected]...
    >
    > through vba only...
    >
    > When I click browser button on my userform it opens the default folder
    > of "my documents" to open any excel file
    >
    > I need to open the default folder to be = "C:\my project\new" to open
    > file from there...
    >
    >
    > --
    > ilyaskazi
    > ------------------------------------------------------------------------
    > ilyaskazi's Profile:
    > http://www.excelforum.com/member.php...o&userid=23969
    > View this thread: http://www.excelforum.com/showthread...hreadid=375911
    >




  4. #4
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Thumbs up

    thanku Mike,

    it is working perfect. I was stuck with this problem for last 3 days to get solved on so many forum's website.

    finally on this forum, today only I hv registered and happy to see its solution so quickly.

    thankyou once again.

    Regards,
    ilyaskazi

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1