Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to determine full path of table by a macro within it

Hello!

I'm programming in VB 6.0. I'm writing a macro in an XLS table. How can I
determine in the program the full path of the table itself, including the
drive letter? Is there a function for it, or any other way?

Thanks,
Viktor
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default How to determine full path of table by a macro within it

Have you tried:

thisworkbook.Path
or
Workbooks("Book1.xls").Path

Hope this helps
Rowan

Jazz1934 wrote:
Hello!

I'm programming in VB 6.0. I'm writing a macro in an XLS table. How can I
determine in the program the full path of the table itself, including the
drive letter? Is there a function for it, or any other way?

Thanks,
Viktor

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default How to determine full path of table by a macro within it

use ThisWorkbook.path

here's an example

Option Explicit
Dim FilePath As String

Sub wbPath()
FilePath = ThisWorkbook.Path
MsgBox FilePath
End Sub

--


Gary


"Jazz1934" wrote in message
...
Hello!

I'm programming in VB 6.0. I'm writing a macro in an XLS table. How can I
determine in the program the full path of the table itself, including the
drive letter? Is there a function for it, or any other way?

Thanks,
Viktor



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to determine full path of table by a macro within it


Thisworkbook.fullname


--
bighead


------------------------------------------------------------------------
bighead's Profile: http://www.excelforum.com/member.php...o&userid=27048
View this thread: http://www.excelforum.com/showthread...hreadid=469433

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
only the macro name and not the full path to show in the run box Richard Excel Discussion (Misc queries) 2 July 24th 06 07:08 PM
Full path possible to be seen? Octavio New Users to Excel 10 July 2nd 06 08:51 PM
Full path in title bar ntoze Excel Discussion (Misc queries) 0 February 21st 06 07:26 PM
Full path in taskbar GregR Excel Programming 8 August 9th 05 03:34 AM
How to get the full path name of the open workbook in a macro Flystar[_10_] Excel Programming 3 May 13th 04 09:16 AM


All times are GMT +1. The time now is 01:25 AM.

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"