Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
xPath = Application.ActiveWorkbook.Path
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ... 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 12$B7n(B6$BF|(B, $B2<8a(B5$B;~(B31$BJ,(B, "Bob Phillips" wrote:
xPath = Application.ActiveWorkbook.Path -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ... 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- $Bp,i6Ho0zMQJ8;z(B - - $Bp}<(Ho0zMQJ8;z(B - 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro - save to current location vs excel default location | Excel Discussion (Misc queries) | |||
File Properties Location retrieve to refresh background query? | Excel Programming | |||
generate a random number and use if function to generate new data | Excel Worksheet Functions | |||
Mouse Location, Movement and Spreadsheet Location | Excel Programming | |||
Properties transferring from excel cells to word file properties | Excel Programming |