ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   open browser window at my given location (https://www.excelbanter.com/excel-programming/330727-open-browser-window-my-given-location.html)

ilyaskazi

open browser window at my given location
 

through vba only...

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

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

--
ilyaskaz
-----------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396
View this thread: http://www.excelforum.com/showthread.php?threadid=37591


ilyaskazi[_2_]

open browser window at my given location
 

is it possible???

or my question is not cleared????

--
ilyaskaz
-----------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396
View this thread: http://www.excelforum.com/showthread.php?threadid=37591


Mike Fogleman

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" wrote
in message ...

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




ilyaskazi[_3_]

open browser window at my given location
 

thanku Mike,

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

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

thankyou once again.

Regards,
ilyaskaz

--
ilyaskaz
-----------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396
View this thread: http://www.excelforum.com/showthread.php?threadid=37591



All times are GMT +1. The time now is 02:13 PM.

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