Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Locating the directory a workbook is stored in

Hi, I was just wondering if it possible to get excel to return the location
of the workbook that is currently in use. If so does anyone know the VBA
code to do this? Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Locating the directory a workbook is stored in


try this --

Dim wsh1 as Worksheet
Dim sPath as String

Set wsh1 = ActiveWorkbook.Worksheets(1)
sPath = ActiveWorkbook.Path & "\"


Rgds,

"Graham Whitehead" wrote:

Hi, I was just wondering if it possible to get excel to return the location
of the workbook that is currently in use. If so does anyone know the VBA
code to do this? Thanks.



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
Locating if a Sheet is present in a workbook Shane Excel Discussion (Misc queries) 3 October 29th 09 08:20 PM
Locating a Worksheet from another Workbook Walter Excel Worksheet Functions 12 March 13th 09 07:59 PM
Refer to picture stored in workbook JakeyC Excel Programming 0 April 12th 06 11:24 PM
LOCATING A CHART SAVED IN A WORKBOOK FLKULCHAR Excel Discussion (Misc queries) 0 June 24th 05 05:26 AM
Locating Latest Workbook teresa Excel Programming 1 December 12th 04 08:43 PM


All times are GMT +1. The time now is 11:52 PM.

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

About Us

"It's about Microsoft Excel"