|
-
Jul 17th, 2008, 10:57 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] location/directory of workbook?
Hey all,
Is there a command to get the full path of the current workbook?
like a Workbook.Location or something?
which would return "C:\test\workbook.xls" ?
thanks much!
-
Jul 17th, 2008, 11:21 AM
#2
Fanatic Member
Re: location/directory of workbook?
-
Jul 17th, 2008, 11:27 AM
#3
Thread Starter
Hyperactive Member
Re: location/directory of workbook?
That doesn't work for me...
do I have to defined Workbook as my current Workbook?
and Application.path returns the MS office folder...
-
Jul 17th, 2008, 11:43 AM
#4
Fanatic Member
Re: location/directory of workbook?
The path won't return any data if the workbook hasn't been saved yet. Use ActiveWorkbook if you aren't sure which workbook to reference.
-
Jul 17th, 2008, 11:46 AM
#5
Re: location/directory of workbook?
Try
Code:
Application.ActiveWorkbook.FullName
-
Jul 17th, 2008, 12:16 PM
#6
Thread Starter
Hyperactive Member
Re: location/directory of workbook?
-
Jul 17th, 2008, 12:17 PM
#7
Thread Starter
Hyperactive Member
Re: location/directory of workbook?
combined with
Application.ActiveWorkbook.name
get the whole path and file name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|