PC Review


Reply
Thread Tools Rate Thread

Active workbook folder name

 
 
Jasoni
Guest
Posts: n/a
 
      2nd Oct 2008
How can I solve my active workbooks folder name.

I have

Dim awb As Workbook
Dim FileName As String
Set awb = ActiveWorkbook
FileName = awb.FullName


Which gives me sothing like

C:\test\first.xls

I would like to have only the folder name c:\test

FullName option gives me the whole string, is there any other to have the
folder name without making any string calculating.



 
Reply With Quote
 
 
 
 
papou
Guest
Posts: n/a
 
      2nd Oct 2008
Hello
Thisworkbook.Path

HTH
Cordially
Pascal

"Jasoni" <(E-Mail Removed)> a écrit dans le message de news:
48e47b5d$0$23611$(E-Mail Removed)...
> How can I solve my active workbooks folder name.
>
> I have
>
> Dim awb As Workbook
> Dim FileName As String
> Set awb = ActiveWorkbook
> FileName = awb.FullName
>
>
> Which gives me sothing like
>
> C:\test\first.xls
>
> I would like to have only the folder name c:\test
>
> FullName option gives me the whole string, is there any other to have the
> folder name without making any string calculating.
>
>
>



 
Reply With Quote
 
Jasoni
Guest
Posts: n/a
 
      2nd Oct 2008
Thank you for the quick answer.
Should have guessed that ;o)


"papou" <(E-Mail Removed)> kirjoitti
viestissä:(E-Mail Removed)...
> Hello
> Thisworkbook.Path
>
> HTH
> Cordially
> Pascal
>
> "Jasoni" <(E-Mail Removed)> a écrit dans le message de news:
> 48e47b5d$0$23611$(E-Mail Removed)...
>> How can I solve my active workbooks folder name.
>>
>> I have
>>
>> Dim awb As Workbook
>> Dim FileName As String
>> Set awb = ActiveWorkbook
>> FileName = awb.FullName
>>
>>
>> Which gives me sothing like
>>
>> C:\test\first.xls
>>
>> I would like to have only the folder name c:\test
>>
>> FullName option gives me the whole string, is there any other to have the
>> folder name without making any string calculating.
>>
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to update active workbook in one folder Mike @ GD Microsoft Excel Worksheet Functions 8 15th Jan 2009 02:19 PM
Move Active Workbook to another Folder jonallen51 Microsoft Excel Misc 0 12th Mar 2008 07:41 PM
Closing Hidden Workbook when Active Workbook is Closed =?Utf-8?B?U3VzYW5LNTIx?= Microsoft Excel Programming 5 24th Sep 2005 12:27 AM
copy worksheet from closed workbook to active workbook using vba =?Utf-8?B?bWFuZ28=?= Microsoft Excel Worksheet Functions 6 9th Dec 2004 07:55 AM
Preventing opening workbook inside active workbook. Serge Microsoft Excel Programming 2 4th Nov 2003 07:51 PM


Features
 

Advertising
 

Newsgroups
 


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