+ Reply to Thread
Results 1 to 3 of 3

What Template does this Excel WorkBook derive from ?

Hybrid View

  1. #1
    RAFAAJ2000
    Guest

    What Template does this Excel WorkBook derive from ?

    Hi,

    I have an Excel WorkBook (xls) open and I want to return ,via code, the
    Template (xlt) that this WorkBook is based on .

    I know there is a Property in MS Word called : 'AttachedTemplate' that does
    that as follows :

    MsgBox ActiveDocument.AttachedTemplate.FullName

    However, there is no such Property in Excel.

    Any Ideas ?

    Regards.


  2. #2
    cush
    Guest

    RE: What Template does this Excel WorkBook derive from ?

    Does this work for you:

    Msgbox ActiveWorkbook.Name & ".xlt"


    "RAFAAJ2000" wrote:

    > Hi,
    >
    > I have an Excel WorkBook (xls) open and I want to return ,via code, the
    > Template (xlt) that this WorkBook is based on .
    >
    > I know there is a Property in MS Word called : 'AttachedTemplate' that does
    > that as follows :
    >
    > MsgBox ActiveDocument.AttachedTemplate.FullName
    >
    > However, there is no such Property in Excel.
    >
    > Any Ideas ?
    >
    > Regards.
    >


  3. #3
    Dave Peterson
    Guest

    Re: What Template does this Excel WorkBook derive from ?

    Once the workbook is created, the "attachment" to the template file is gone.

    Excel works differently than MSWord.

    RAFAAJ2000 wrote:
    >
    > Hi,
    >
    > I have an Excel WorkBook (xls) open and I want to return ,via code, the
    > Template (xlt) that this WorkBook is based on .
    >
    > I know there is a Property in MS Word called : 'AttachedTemplate' that does
    > that as follows :
    >
    > MsgBox ActiveDocument.AttachedTemplate.FullName
    >
    > However, there is no such Property in Excel.
    >
    > Any Ideas ?
    >
    > Regards.


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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