Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2007

Tip: Looking for answers? Try searching our database.

How to get Properties Generate tab Location value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
moonhkt@gmail.com - 06 Dec 2007 09:21 GMT
Hi Reader
How to get Properties Generate tab "Location" value  ?
What location is file saved directory.

Below coding just return file name only.
Sub FileName()
Dim xname As String
   xname = Application.ActiveWorkbook.Name

   xname = Application.InputBox("File Information", "Detail", xname)

End Sub

moonhk
Bob Phillips - 06 Dec 2007 09:31 GMT
xPath = Application.ActiveWorkbook.Path

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi Reader
> How to get Properties Generate tab "Location" value  ?
[quoted text clipped - 10 lines]
>
> moonhk
moonhk - 07 Dec 2007 01:48 GMT
> xPath = Application.ActiveWorkbook.Path
>
[quoted text clipped - 26 lines]
>
> - 顯示被引用文字 -

Thank. My coding as below
Sub DisplayPathFileName()
'~~ 2007/12/07
Dim xname As String
Dim xPath As String
   If Application.ActiveWorkbook Is Nothing Then
        MsgBox "No Open Worksheet", vbCritical
       Exit Sub
   End If
   xname = Application.ActiveWorkbook.Name
   xPath = Application.ActiveWorkbook.Path
   xname = Application.InputBox("File Information", "Detail", xPath &
"\" & xname)

End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.