Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default Open folder - Activeworkbook location

Is it possible to open the folder of the active workbook location from
File-Open??
Any macro pls

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Open folder - Activeworkbook location

Folders aren't opened. If you want the file=Open dialog to default to that
folder then make it the current directory with

ChDrive Activeworkbook.Path
ChDir ActiveWorkbook.Path
fname = application.GetOpenFileName()

--
Regards,
Tom Ogilvy


"al007" wrote in message
oups.com...
Is it possible to open the folder of the active workbook location from
File-Open??
Any macro pls



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default Open folder - Activeworkbook location

Hi Tom,
The macro works fine - except if i use it when the active workbook is a
new one & has not yet been saved . What if error code do i have to add
to make the macro default to my D:\ drive in that case & everything
remaining the same otherwisse..
thxs

Tom Ogilvy wrote:
Folders aren't opened. If you want the file=Open dialog to default to that
folder then make it the current directory with

ChDrive Activeworkbook.Path
ChDir ActiveWorkbook.Path
fname = application.GetOpenFileName()

--
Regards,
Tom Ogilvy


"al007" wrote in message
oups.com...
Is it possible to open the folder of the active workbook location from
File-Open??
Any macro pls


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default Open folder - Activeworkbook location

A file won't open also if activebook is from a drive only & is not in a
folder.
Can this be fixed?
Thxs

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
XLSTART Folder Location Matt L. Excel Discussion (Misc queries) 0 July 18th 06 10:29 PM
Temporary Folder Location Bill[_30_] Excel Programming 2 January 5th 06 11:08 PM
open file from folder save in new folder tim64[_3_] Excel Programming 20 June 17th 05 07:58 PM
Template Folder location RD Wirr Setting up and Configuration of Excel 2 December 3rd 04 06:09 AM
Copy Files from a folder to new location saybut[_3_] Excel Programming 0 February 10th 04 03:26 PM


All times are GMT +1. The time now is 10:20 PM.

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"