Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Active workbook folder name

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.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Active workbook folder name

Hello
Thisworkbook.Path

HTH
Cordially
Pascal

"Jasoni" a écrit dans le message de news:
...
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.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Active workbook folder name

Thank you for the quick answer.
Should have guessed that ;o)


"papou" kirjoitti
...
Hello
Thisworkbook.Path

HTH
Cordially
Pascal

"Jasoni" a écrit dans le message de news:
...
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
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
Macro to update active workbook in one folder Mike @ GD Excel Worksheet Functions 8 January 15th 09 02:19 PM
Move Active Workbook to another Folder jonallen51 Excel Discussion (Misc queries) 0 March 12th 08 07:41 PM
Closing Hidden Workbook when Active Workbook is Closed SusanK521 Excel Programming 5 September 24th 05 12:27 AM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM
Preventing opening workbook inside active workbook. Serge[_4_] Excel Programming 2 November 4th 03 07:51 PM


All times are GMT +1. The time now is 06: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"