+ Reply to Thread
Results 1 to 5 of 5

Get built in property details of a closed workbook

  1. #1
    Registered User
    Join Date
    08-30-2017
    Location
    SHEFFIELD,ENGLAND
    MS-Off Ver
    2016
    Posts
    37

    Get built in property details of a closed workbook

    Hi guys again,

    Quick question

    I know how to get the ‘last author’ details from the built in document properties of an active workbook. However, how can I do this for a ‘closed’ workbook without calling it to open?

    I don’t want the closed workbook to open, also I want information to displayed in a cell


    Thanks in Advance


    Sloshpuppy

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Get built in property details of a closed workbook

    Hello
    First download DSOFileSetup from this link FROM HERE

    Install and then open VBE and from Tools >> References >> Check 'DSO OLE Document Properties Reader 2.1'

    Then use xld's code at THIS LINK
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Get built in property details of a closed workbook

    Try this

    PHP Code: 
    Private Sub GetAuther()
        
    Dim objShell  As Object
        Dim objFolder 
    As Object
        
        Set objShell 
    CreateObject("Shell.Application")
        
    Set objFolder objShell.Namespace("Folder path in which your book exists")
        
        If (
    Not objFolder Is NothingThen
            Dim objFolderItem 
    As Object
            Set objFolderItem 
    objFolder.ParseName("Name of your book with extension")
       
            If (
    Not objFolderItem Is NothingThen
            Dim szItem 
    As String
                szItem 
    objFolder.GetDetailsOf(objFolderItem20)
            
    End If
            
    MsgBox szItem
            Set objFolderItem 
    Nothing
        End 
    If
        
        
    Set objFolder Nothing
        Set objShell 
    Nothing
    End Sub 
    Teach me Excel VBA

  4. #4
    Registered User
    Join Date
    08-30-2017
    Location
    SHEFFIELD,ENGLAND
    MS-Off Ver
    2016
    Posts
    37

    Re: Get built in property details of a closed workbook

    Thanks Imran for providing the basis of the code, slightly tweaked to give the preferred result

    Thanks again and to the remainder that supported. Great work guys !!!!

    Please Login or Register  to view this content.
    Slosh

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Get built in property details of a closed workbook

    Glad it directed you to the solution.

    Thanks for the rep+

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VB Script to open multiple folders on HD & provide file property details.
    By LauraShepherd-Boyd in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-11-2017, 12:23 AM
  2. [SOLVED] List all files in Directory and Subdirectory with File Property Details
    By Green Crocodile in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2016, 09:59 PM
  3. Export data with two Criteria values from closed workbook to closed workbooks VBA
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2016, 01:56 PM
  4. need vba to copy sheets from closed workbook and paste into all closed wb's
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2016, 01:25 PM
  5. Update Cell Value from a Closed Workbook to Another Closed Workbook
    By glennchung in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2014, 04:44 PM
  6. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  7. default property of a built-in class
    By seron in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2006, 12:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1