Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workbooks opening in browser window Richard Excel Discussion (Misc queries) 0 January 17th 07 04:52 PM
file browser window saybut Excel Discussion (Misc queries) 1 August 15th 05 06:06 PM
Open all various hyperlinks in SAME browser window? Michael hauschild Links and Linking in Excel 2 July 13th 05 06:12 PM
Opening browser window Abhay Parekh Excel Programming 1 December 4th 03 08:01 PM
Close Browser window with VBA brianelson Excel Programming 1 July 12th 03 05:35 AM


All times are GMT +1. The time now is 08:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"