Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How to find the owner of the active excel workbook

Dear Smart People,

I'm sure this has been asked before but I'm not able to find the answer.

In Visual Basic, how may I find the name or system ID of the owner of the
currently active workbook?

I apologize if this is an "old" question but I've not been able to gleen the
answer.

Thank you!

Janet
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default How to find the owner of the active excel workbook

Take a look at the BuiltInDocumentProperties to see if you can find what you
want there. I'm not sure you can get the "Owner", but you can find who last
modified the document.
--
HTH,

Barb Reinhardt



"Janet Panighetti" wrote:

Dear Smart People,

I'm sure this has been asked before but I'm not able to find the answer.

In Visual Basic, how may I find the name or system ID of the owner of the
currently active workbook?

I apologize if this is an "old" question but I've not been able to gleen the
answer.

Thank you!

Janet

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default How to find the owner of the active excel workbook

Define the "owner". What are you looking for? HTH Otto

"Janet Panighetti" wrote in
message ...
Dear Smart People,

I'm sure this has been asked before but I'm not able to find the answer.

In Visual Basic, how may I find the name or system ID of the owner of the
currently active workbook?

I apologize if this is an "old" question but I've not been able to gleen
the
answer.

Thank you!

Janet


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default How to find the owner of the active excel workbook

Take a look at the BuiltInDocumentProperties to see if you can find what you
want there. I'm not sure you can get the "Owner", but you can find who last
modified the document.
--
HTH,

Barb Reinhardt



"Janet Panighetti" wrote:

Dear Smart People,

I'm sure this has been asked before but I'm not able to find the answer.

In Visual Basic, how may I find the name or system ID of the owner of the
currently active workbook?

I apologize if this is an "old" question but I've not been able to gleen the
answer.

Thank you!

Janet

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default How to find the owner of the active excel workbook

Maybe "Author" from Properties?

Sub test()
MsgBox ActiveWorkbook.BuiltinDocumentProperties("Author")
End Sub


Gord Dibben MS Excel MVP

On Tue, 22 Dec 2009 17:49:51 -0500, "Otto Moehrbach"
wrote:

Define the "owner". What are you looking for? HTH Otto

"Janet Panighetti" wrote in
message ...
Dear Smart People,

I'm sure this has been asked before but I'm not able to find the answer.

In Visual Basic, how may I find the name or system ID of the owner of the
currently active workbook?

I apologize if this is an "old" question but I've not been able to gleen
the
answer.

Thank you!

Janet




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default How to find the owner of the active excel workbook

This macro (GetWorkbookProperties) will give you a message box with the
Workbook properties.
--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown

'/=======================================/
' Sub Purpose: List Workbook Properties to Msgbox
' both Built-in and Custom
' 01/24/2000
'/=======================================/
'
Sub GetWorkbookProperties()
Dim objProperty As Object
Dim strAnswer As String

On Error Resume Next

'List Workbook name and size
strAnswer = "Workbook: " & _
" " & Excel.ActiveWorkbook.name & vbCr & _
Excel.ActiveWorkbook.FullName & vbCr & _
" - Workbook File Size: " & _
Format(FileLen(Excel.ActiveWorkbook.FullName) / 1024, _
"#,##0") & " kb" & vbCr

'List Builtin Document Properties
For Each objProperty In _
ActiveWorkbook.BuiltinDocumentProperties
With objProperty
strAnswer = strAnswer & vbCr & _
"Builtin - " & .name & " : " & .value
End With
Next

'List Custom Document Properties
For Each objProperty In _
ActiveWorkbook.CustomDocumentProperties
With objProperty
strAnswer = strAnswer & vbCr & _
"Custom - " & .name & " : " & .value
End With
Next

MsgBox strAnswer

exit_Sub:
On Error Resume Next
Exit Sub

err_Sub:
Debug.Print "Error: " & Err.Number & " - (" & _
Err.Description & _
") - " & Now()
GoTo exit_Sub

End Sub
'/=======================================/

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
File owner attributes through Excel VBA PJ Excel Programming 4 September 22nd 09 01:37 PM
Edit VBA to print Directory including file owner into Excel Spread Melody Excel Programming 8 October 6th 08 02:23 PM
Why does a new Excel Workbook open with IV1 as the active cell? pjwing Excel Discussion (Misc queries) 1 July 3rd 07 11:26 PM
Excel and IE Active Workbook Problem cottonla Excel Programming 0 June 30th 05 04:14 PM
Mailing Excel workbooks that are not active workbook Beverly[_3_] Excel Programming 11 January 15th 04 12:51 PM


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